fluent-interface
EF 4.1 Code First problem with parent child and Inheritance Mapping
I have run into some problems with Inheritance Mapping, I can\'t get it to map correct to the base class, and get an Invalid column on all the fields in the base class (Elements)[详细]
2023-02-22 19:51 分类:问答EF 4.1 RC Code First - Mapping to existing database & specifying foreign key name
I have two classes.A Company has a County set against it: public class Company { public int Id { get; set; }[详细]
2023-02-22 13:32 分类:问答Entity Framework Code First Mapping Foreign Key Using Fluent API
I have the situation where a User can have several addresses. Accordingly, I have an ICollection on my user class. But I also want the user to be able to choose a default address. So I\'ve done the fo[详细]
2023-02-21 00:40 分类:问答Do monads have fluent interfaces?
Forgive me if this question seems stupid, but I\'m quite new to the whole world of functional programming so I\'ll need some denizens on StackOverflow to set me straight.[详细]
2023-02-20 09:31 分类:问答Difference between .WithMany() and .WithOptional()?
Below are two similar fluent API configurations: WithMany() modelBuilder.Entity<Country>() .HasRequired(cou => cou.Currency)[详细]
2023-02-19 06:42 分类:问答EF 4.1 RC: Weird Cascade Delete
I have to admit, the features of EF 4.1 RC Codefirst, DataAnnotations and FluentAPI are still overwhelming to me. Sometimes I really don\'t know what I am doing ;-) Please see the following POCOs:[详细]
2023-02-18 23:25 分类:问答Entity Framework 4.1 RC: Override name of Many to Many join table
In my code I have a many to 开发者_开发知识库many relationship defined using: modelBuilder.Entity<Post>()[详细]
2023-02-18 19:33 分类:问答Pros and Cons of Fluent and XML Configuration
If you w开发者_运维知识库e\'re about to start a new project with some third party libraries (logging, orm, di, whatever), would you prefer to configure all this libraries via programming with fluent i[详细]
2023-02-14 09:12 分类:问答Mapping Relationship with Legacy Database using Entity Framework CTP5
I\'m having trouble mapping two entities together with Entity Framework CTP5 using Code First / Fluent API. The database is an old one from another application (Exact MAX) that our company is switchin[详细]
2023-02-13 04:22 分类:问答EF4 CodeFirst CTP5 nvarchar(max) via attribute
开发者_JAVA百科Is there a way to create a custom attribute that will make EF CodeFirst use nvarchar(max) as datatype when assigned to a property of a poco class? I know this is possible via fluent api[详细]
2023-02-12 12:35 分类:问答