entity-framework-4
Reusing LINQ query results in another LINQ query without re-querying the database
I have a situation where my application constructs a dynamic LINQ query using PredicateBuilder based on user-specified filter criteria (aside: check out this link for the best EF PredicateBuilder impl[详细]
2023-04-08 02:57 分类:问答Get list of properties of an entity
I\'m using entity framework. I would like to get the property list of an entity when the EntityState of the object is \"Added\", and loop throught them.[详细]
2023-04-07 20:09 分类:问答Error with Entity Framework 4 and MVC 3
I have a database with 3 tables: Subjects Members Topics Then I added the connection string to web.config and created an EF with the following classes:[详细]
2023-04-07 18:30 分类:问答MVC3/LINQ/EF4.1 selecting distinct col values from a result set?
How can I select a list of column values from a result set (as distinct) and put into a list? class T {int id; string name;}[详细]
2023-04-07 18:19 分类:问答Which configuration do I need to use an external DLL in a WinForms application?
I\'m working with an external DLL to consume an OCR device using a wrapper written by me. I have made tests on the wrapper and it works perfectly. But, when I use a WinForms project to consume the cli[详细]
2023-04-07 17:10 分类:问答EF4 Hiding / Substitution of underlying fields
I have a data model like this in SQL Server: table Note - varchar NoteText - tinyint PriorityLevel In my code, Entity Framework turns it into a class like:[详细]
2023-04-07 16:36 分类:问答Is it necessary to always Select()... new{Anon}... AsEnumerable...Select(new EntityType{}) every time?
I keep running into a pattern whereby I want to select rows from an Entit开发者_运维百科y Collection (EF4) and use the data to create new rows in a different entity collection.[详细]
2023-04-07 16:12 分类:问答How to logging data change with Entity Framework, otherwise how to do it with SQL Server 2008 Standard?
I use SQL Server 2008 Standard, Asp.net MVC 2 and Entity Framework 4.0 I would like to know the best and simplest way to log data change. I read a little bit about change data capture and seem to be[详细]
2023-04-07 14:36 分类:问答Ef Code first One to one relationship with id as foreign
I\'m traying to do a mapping withOne to One relationship with id as \"foreign\", I can\'t change the database[详细]
2023-04-07 12:55 分类:问答Problem using SQL Server CE with Entity Framework code-first and ASP.NET MVC 3 and mvc miniprofiler
I am attempting to create an ASP.NET MVC 3 application using C#, Entity Framework 4.0 code-first and SQL Server CE, and the automated scaffolding. Everything works fine until I try to actually use a p[详细]
2023-04-07 12:44 分类:问答