I am using EF4 in my application and I want to make test cases for DAL methods, which generally hit the database to get data. I am using the Typemock framework for Mocking. I want to mock database cal
I have many methods like this: public IEnumerable<Director> GetAllDirectors() { using (var dbContext = new BodModelContainer())
Is there a way when i add a new entity to my Code First confi开发者_Go百科guration the table gets automatically added so i don\'t have to worry about updating my DB with new tables?you can add
I am using Entity Framework 4.1 code first. I had a table in the database with the name MaritalStatus.I deleted it and created a new table in its place called MaritalStatuses.Whenever I try to get al
I\'m running into problems when I try to save entities that have a parent/child relationship in EF4.Sometimes, the child will be inserted before the parent - which obviously will cause problems from a
I use开发者_运维知识库 POCO in Entity Framework. Is any direct or indirect way in the latest EF version to get Table name at the runtime to avoid hardcode values?
I am using the latest version of Telerik MVC extensions, ASP.NET MVC 3 with the Razor view engine, and Entity Framework 4.1 code first.
My model looks like this public Class Address { public int Id {get;set;} /*Props here*/ } public Class Person
I\'m trying to model entities from a film database. I have films which have a list of directors and directors which have a list of films. Objects I made are like this:
I am working on an app where I am using WCF RIA services and entity framework. On laod,i have written a method which gets a list of schedules from database(as fetched using RIA method LoadOperation&l