entity-framework-4.1
Using custom datatypes in Entity POCOs?
I have a business object, say a User.A User has a PhoneNumber field, which is represented by a string.I, for reasons best left to me, have created a PhoneNumber class that has implicit to/from string[详细]
2023-04-08 12:25 分类:问答EF Code-First - Storing IEnumerable Of Enum
I\'m using EF June CTP which has simple enum support. I have a MVC 3 view which has checkboxes that when submitted are retrieved as an array of some enum.[详细]
2023-04-08 09:32 分类:问答EF - Cascade Delete Not Working, Can't Delete Object
I get this error: System.Data.SqlClient.SqlException The DELETE statement conflicted with the REFERENCE constraint \"FK_comments_postId__164452B1\". The[详细]
2023-04-08 08:39 分类:问答EF 4.1 Code First MVC3 App and Facebook Share Feature
I am working on a simple web application made using Entity Framework 4.1 Code First approach and MVC3.[详细]
2023-04-08 05:36 分类:问答How do you specify Cascade Delete for base tables using fluent api?
Question: How do I get EF 4.1 to specify the ON DELETE CASCADE option on the foreign key con开发者_JAVA百科straint using the fluent api for base tables? I know how to do it with relationships to other[详细]
2023-04-08 05:15 分类:问答How to use projection to select where x.val1=1, x.val2=2, etc.?
How can use projection to select with where clause specification? Perhap开发者_如何学编程s something like?:[详细]
2023-04-08 04:13 分类:问答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 分类:问答Mapping to a nested class
I am getting the following error when my application runs: System.InvalidOperationException: The type \'ContactModels+Contact\' was not mapped. Check that the[详细]
2023-04-08 02:21 分类:问答Error 6017: The NavigationProperty '(propertyname)' on the type '(typename)' is the source of
Error 6017: The NavigationProperty \'(propertyname)\' on the type \'(typename)\' is the source of a generated property \'(otherpropertyname)\' which conflicts with a member of the same name.[详细]
2023-04-08 00:15 分类:问答How to convert an ERD to Code First classes?
I have the following ERD and want to convert it EF 4.1 Code First classes. For the sake of simplicity, I will concentrate on the first two Entities only.[详细]
2023-04-07 20:16 分类:问答