code-first
Entity Framework Code First Many to Many Setup For Existing Tables
I have the following tables Essence, EssenseSet, and Essense2EssenceSet Essense2EssenceSet is the linking table that creates the M:M relationship.[详细]
2023-03-06 16:14 分类:问答EF4.1 how to model 0:1 (1:1) relationships
I am trying开发者_如何学运维 to model a \"User can have 0 or 1 set of preferences\" where the preferences table has a primary key of UserId which is also a foreign key to the User entity, a la this po[详细]
2023-03-06 09:25 分类:问答EF 4.1 Code First doesn't create column for List<string>
I have bee开发者_开发技巧n playing around quite a lot with EF4 Code First and I do love it. However, I cannot seem to sort this easy one out.[详细]
2023-03-05 17:52 分类:问答Storing objects with Code First that are related as classes and subclasses
As an example I have an object Person, and Person is inherited by Man and Woman. Person contains the properties that both Man and Woman share, and Man and Woman contain the specific properties.[详细]
2023-03-05 09:41 分类:问答How to get entity framework to realize the model and the DB are in sync
I am using Entity Framework code first for the first time in a production environment. Everything went fine until we got the DB up and had put some of the data in it and then to get some of the data w[详细]
2023-03-05 01:48 分类:问答Entity Framework | Code First - Get Name Of Created Table
Is it possible? I know I can get the name, when I\'ve specified the TableAttribute, but it should be possible even so, when I 开发者_Go百科let the framework manage the name.[详细]
2023-03-05 01:00 分类:问答EF 4.1: Why does turning a constant into a variable result in extra sub query?
Today I discovered that Entity Framework was adding an unnecessary sub query to the SQL it generates. I started digging my code trying to narrow down where it might come from. A (long) while later I p[详细]
2023-03-04 13:52 分类:问答Entity Framework 4.1 Code First approach to create many-to-many relation
I\'m using the Silverlight 5 Beta SDK and the EntityFramework 4.1 in an Silverlight Application. I\'ll try to create the two tables \'Author\' and \'Book\'. In SQL, there should be a third (join) tab[详细]
2023-03-04 11:52 分类:问答Entity Framework 4.1 Code-First approach to realize many-to-many relation over Domain-Services
I had some problems while creating a database model using the newest Entity Framework and Code-First (see Entity Framework 4.1 Code First approach to create many-to-many relation for details).[详细]
2023-03-04 05:52 分类:问答Using EF4 Code First: How can I change the Model without losing data
In my Global.asax Ihave the following line: Database.SetInitializer<myDbSupport> (new DropCreateDatabaseIfModelChanges<myDbSupport>());[详细]
2023-03-03 01:24 分类:问答