entity-framework-4.1
EF 4.1 one to one Mapping
I have two tables Employees and Positions. Employee EmployeeId (PK) PositionId (FK, Nullable) 开发者_如何学JAVA[详细]
2023-04-10 17:00 分类:问答Overriding SaveChanges and setting ModifiedDate, but how do I set ModifiedBy?
I have an ASP.NET MVC3 web application with UI, Business (entities), and Data (DbContext) layers.I am using Entity Framework 4.1 Code First. Right now, I am overriding the DbContext.SaveChanges() in t[详细]
2023-04-10 16:03 分类:问答How to loop through a child list of objects in Entity Framework 4.1 code first
I am using Entity Framework 4.1 code first. Here is my Category class: public class Category { public int Id { get; set; }[详细]
2023-04-10 13:28 分类:问答Cyclic reference error in EF code first
This is my abstract base class: publi开发者_JS百科c abstract class ServiceStation { #region \'----- Member(s) -----\'[详细]
2023-04-10 12:18 分类:问答How do I make my repository remove child entities and not just navigation properties from my aggregate root
I\'m trying to build a functioning repository using Entity Framework. I feel like I\'m missing something really obvious somewhere. Lets say I have IRepository<Person> which has many Address in a[详细]
2023-04-10 12:13 分类:问答Caching an EF entity in ASP.NET cache
I have an MVC3 site with EF4.1 and repository/unit of work pattern and creating a new context per http request.[详细]
2023-04-10 10:59 分类:问答Table isn't showing up as a FK dependency (dotted line assoc) when added to .edmx?
I have a TableA that includes a TableBId dependency.When I try to delete and re-include TableB my .edmx is still not showing an association between TableA and TableB.My db is FK relationthip in the db[详细]
2023-04-10 08:12 分类:问答entity framework 4.1 faking dbcontext
Im using the entity framework 4.1 and have followed a tutorial to fake the dbcontext to mock and do unit tests.Everything works as expected with this.ive amended the original dbc开发者_Go百科ontext to[详细]
2023-04-10 07:14 分类:问答EF switching from one db to another .edmx settings how to?
I have an mvc3/EF4.1 model that has an .edmx bound to a Db locally.I have to move this model to Databa开发者_C百科se to another server.[详细]
2023-04-10 06:35 分类:问答Working with a Model class that has a foreign/navigation key to itself
I am trying to develop a catalog project in ASP.NET MVC 3 and using EF Code first with an existing Database. There is a Categories table in m开发者_Go百科y database that points to itself. For that, I[详细]
2023-04-10 06:11 分类:问答