code-first
Using base class for object creates problems for EF4.1 POCO
On a new project I\'d like to use the \"Code First\" feature of Entity Framework to set up my data store.[详细]
2023-03-14 07:17 分类:问答Parent-Child Relationship in Fluent API
Okay, this is getting ridiculous as this is turning out to be much more difficult than it has any right to be.[详细]
2023-03-14 01:25 分类:问答How to Map sum property (like TotalPrice) in Entity Framework Code First
I use entity framework 4.1 code first. And I have classic sample: Order and OrderLines. Each OrderLine has its own price and I\'d like to have property TotalPrice on Order.[详细]
2023-03-13 23:45 分类:问答What causes "Incorrect syntax near <stored procedure name>" in EF Code First and SQL 2005?
The examples for System.Data.Entity.Database.SqlQuery method I\'ve found appear to work well with SQL 2008 R2 but do not appear to work with SQL 2005.[详细]
2023-03-13 20:11 分类:问答EF Code First - Two Tables, Two relationships
i\'m with a trouble; For initial imagine that we have an entity Member, and Member has Projects.. If you ask: Do projects have members? Yes they have...[详细]
2023-03-13 19:06 分类:问答EF code first return subset of columns
I have a table with about 12 columns.But there are time when I only need 2 or 3 columns. I am using Entity Framework code first to query the database from my website.[详细]
2023-03-13 17:28 分类:问答.NET MVC: How to define ntext field in Code-First for SQL CE?
I have the following model: public class Blog { public int BlogID { get; set; } public int CategoryID { get; set; }[详细]
2023-03-13 14:07 分类:问答Entity Framework Database.SetInitializer simply not working
I am having this kind of \"mysterious\" issue here. I am currently using Entity Framework 4.1 Code First approach with my ASP.NET MVC 3 application, it worked great, until yesterday...[详细]
2023-03-13 13:58 分类:问答Adding an html action link to an Entity Framework Code First AddModelError string
I am pretty new to programming so sorry if I\'m being stupid, but I am writing an ASP.Net MVC3 application in which, if a particular exception is caught a message is displayed because of a composite k[详细]
2023-03-12 20:30 分类:问答How can I get my database to seed using Entity Framework CodeFirst?
The database is created successfully (as are the tables) but is not seeded. I have spent several hours and read tons of articles but have not been able to get it. Any suggestions?[详细]
2023-03-12 16:49 分类:问答