entity-framework-ctp5
How to define the database schema name in EF CTP 5
I am using CTP 5 with existing database. Tables are created under a schema different than dbo. The SQL generated by the DbContext is using dbo. How do I make the DbCo开发者_运维百科ntext use the corre[详细]
2023-02-14 19:08 分类:问答Problem with Eager Loading Nested Navigation Based on Abstract Entity (EF CTP5)
I a portion of my EF model that looks like this: Summary: Location has many Posts Post is an abstract class[详细]
2023-02-14 13:59 分类:问答Entity Framework CTP5 Code-First Mapping - Foreign Key in same table
How would I map something like this using the modelBuilder? Where theres a nullable foreign key referencing the same tables primary key[详细]
2023-02-14 10:52 分类:问答DropdownListFor - Null Reference Exception on page model
I\'m trying to save one of my Models to the database.Given the models: public class Foo { public int Id { get; set; }[详细]
2023-02-14 07:06 分类:问答Entity Framework CTP 5 One to One mapping
I have two tables: Requirement RequirementId - PK Fixture FixtureId - PK RequirementId - FK / NULLABLE / Unique Constraint[详细]
2023-02-14 05:45 分类:问答EF 4 CTP 5: Trouble trying to remove an entity
I have created a model POCO class called Recipe; a corresponding RecipeRepository persists these objects. I am using Code First on top of an existing database.[详细]
2023-02-14 05:43 分类:问答EF CTP5 mapping fails on update
I\'m trying to make a one-to-many mapping, but I have some difficulties on saving updates. Menu can have 0 to 1 module.[详细]
2023-02-14 04:10 分类:问答Can I use CTP5 DBContext with LINQPad?
As you can see on title, I would say if I can use LinqPad with CTP5 DBContext. I see the guide on http://www.linqpad.net/EntityFramework.aspx to link LinqPad with my EF model, but I receive the messag[详细]
2023-02-14 03:32 分类:问答EF Code First - Include(x => x.Properties.Entity) a 1 : Many association
Given a EF-Code First CTP5 entity layout like: public class Person { ... } which has a collection of: public class Address { ... }[详细]
2023-02-14 00:42 分类:问答Entity Framework Code First: How can I model a Customer / Address relationship?
Here is my simplified model: public class Customer { public int ID { get; set; } public int MailingAddressID { get; set; }[详细]
2023-02-14 00:26 分类:问答