ef-code-first
Entity Framework Code First: Adding to Many to Many relationship by ID
I have a Many-To-Many relationship defined like this: public class Post { //NOT SHOWN: Other properties public virtual ICollection<Tag> Tags { get; set; }[详细]
2023-04-05 19:52 分类:问答Is possible to create a database (Sql Server compact) on a given path if we use Entity framework with code-first approach?
I\'m a bit confused about Entity framework, I would like to use code-first approach; infact I would like to write how my database tables are composed through class definition.[详细]
2023-04-05 09:43 分类:问答ef cf linq populate ignored property
I\'m sure this has to have been asked before, but I couldn\'t find a good way to search on it. I have a class like the following[详细]
2023-04-05 09:20 分类:问答How to add foreign key information to code first POCO to comply with RIA Services
My two classes are as follows public class Client { public Guid Id { get; set; } public String Name{ get; set; }[详细]
2023-04-05 06:17 分类:问答EF is overriding properties that i have set
I\'m using a EF 4.1 Code First setup, here are the entities. public class Vendor { public int VendorId { get; set; }[详细]
2023-04-05 02:05 分类:问答With entity framework, how do I force a sql datatype for my string member
I have a product class, for which the ManufacturerNumber gets generated as nvarchar(max) - how would I go about forcing the code-first framework to make it nvarchar(255)[详细]
2023-04-04 09:45 分类:问答EF 4.1 Code First Silverlight 4 RIA public virtual ICollection<T> problem
I\'ve got 2 EF 4.1 Code First classes: public class SKUMaster { public string SKU { get; set; } public virtual ICollection<SKUMasterFinishedItem> SKUMasterFinishedItems { get; se开发者_如何学运[详细]
2023-04-04 08:22 分类:问答Entity Framework Code first - FOREIGN KEY constraint problem
I\'m new to EF code first principal and currently with no clue what to do.. I have 2 POCO classes.. public class Problem[详细]
2023-04-04 07:27 分类:问答Entities Architecture
Using VS2010, .NET4.0, MVC3, EF4.1 Code-First I have this POCO entities: public class XBLContent { [Key] [StringLength(36, ErrorMessage=\"Must have 36 characters\")][详细]
2023-04-04 07:13 分类:问答Entity Framework Code First, Unit of Work, Repository and shared DbContext
I\'m building a web app using EF Code First and ASP.NET MVC. I have following types: IProblemRepository[详细]
2023-04-04 04:26 分类:问答