code-first
Entity Framework 4.1 Custom Database Initializer strategy
I would like to implement a custom database initialization strategy so that I can: generate the database if not exists[详细]
2023-03-21 06:13 分类:问答Entity Framework Code First Adding a null value for a id column
I am using Entity Framework code first and ASP.NET MVC 3. I have the following context defined: public class PbeContext : DbContext[详细]
2023-03-20 09:48 分类:问答Entity Framework Code First Linq MVC 3 Razor
This is my model; namespace AtAClick.Models { public class LocalBusiness { public int ID { get; set; } public string Name { get; set; }[详细]
2023-03-20 04:28 分类:问答Databinding with Winforms and EF 4.1 Code first
I\'m trying to get a Winforms combobox to automatically refresh when new rows are written to our database.[详细]
2023-03-19 20:23 分类:问答'Default values not supported error' when working with Entity Framework Code First and SQLServer Compact 4.0
I am trying both xunit and TestDriven.Net for testing, for database using SQL CE4. Here is the entity definition:[详细]
2023-03-19 16:46 分类:问答Alternative to use a method in a query to the database in c# using entity framework
i separated my application into a DAL, BL, UI. I used entity framework code first throw repositories to access the sql database.[详细]
2023-03-19 10:51 分类:问答Entity Framework: CRUD on objects with complex relationships
I have many objects in my system that all inherit from a base class, Entity. These objects have quite a few relationships, including one-to-one, one-to-many, and many-to-many. Since I am using WCF, my[详细]
2023-03-19 04:43 分类:问答Entity Framework: Attaching related objects and other state management
I have an application which uses Entity Framework Code First. I am attempting to write my resource access layer. I have several objects which all have separate database tables and a lot of object rela[详细]
2023-03-18 22:01 分类:问答Entity Framework: Dependencies due to foreign key constraints
I have been looking around for a solution and cannot find good information. A lot of EF documentation is very out of date. Here is my problem.[详细]
2023-03-18 17:53 分类:问答EF 4.1 Code first. Relation with other object containing required objects
I\'ve been puzzeling and searching all afternoon, but I just can\'t find what I need. Consider the following code:[详细]
2023-03-18 15:46 分类:问答