code-first
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 分类:问答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 分类:问答EF 4.1 code-first: How to select an entity with it's collection-property's count
I have an entity named Tag with a navigation property (collection) named Articles. The Tag has a ignored-property named ArticleCount开发者_运维技巧 that used to save tha associated Article s count (ju[详细]
2023-04-07 12:10 分类:问答Entity Framework 4.1 Foreign Key question
I\'m trudging ahead with an ecommerce database desgin in EF 4.1 Code First. I\'ve come to a situation where I think I\'m justified, but not sure..[详细]
2023-04-07 02:21 分类:问答Entity Framework Code First - Configuration in another file
What is the best way to separate the mapping of tables to entities using the Fluent API so that it is all in a separate class and not inline in the OnModelCreating method?[详细]
2023-04-06 11:37 分类:问答How to modularize WCF Services + EF4.1
I am designing a rather big Silverlight-project. I intend to make heavy use of modularity, so I chose MEF and PRISM to help me out there. However, when it comes to data, I\'m not quite sure how to tac[详细]
2023-04-06 03:05 分类:问答Entity Framework Code First Optional Error Message
[Display(Name = \"Mobile\")] public string Mobile { get; set; } In the above code i want to include something like...[详细]
2023-04-05 21:39 分类:问答Entity Framework lazy load
I have two entities: public class Product { [HiddenInput(DisplayValue=false)] public int ProductID { get; set; }[详细]
2023-04-05 21:16 分类:问答how to use views in code first entity framework [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_JS百科[详细]
2023-04-05 11:37 分类:问答How to add a column to a link table with code first
I have a ResearchDatabase entity that has a many-to-many relationship with a Subject entity. i.e. a Research Database belongs in one or more Subject Categories, and a Subject Category contains one or[详细]
2023-04-04 09:17 分类:问答