I\'ve been a few weeks working on a web project, amd mostly thinking how would I implement data layer. I chosed Entity Framework 4.1, code first model.
I was getting the following error when runing such this code: var dbContext = new MyDbContext(); var list = dbContext.Set<TEntity>().ToList();
I have a entity public class Avatar { [Key] public int Id { get; set; } [Required] private string _linkInString { get; set; }
I am trying to implement caching mechanism for entities. And to use the entities correctly and seamlessly with the caching i need to detach the entity from the current context before i put it in a cac
I am trying to use Automapper with Entity Framework Code First 4.1.I can\'t get a save/update to work correctly 100% of the time.
So I created the following related Classes and I\'m trying to do Code-First approach. I want the Quote class to reference 3 instances of the User class by 3 different navigable property names, but whe
I am developing a simple piece of software which uses Entity Framework code first and sql server compact 4. At the moment this setup works. Entity framework creates the sql server compact file if it d
I\'m trying to implement web application using Entity Framework Code-First. I\'ll explain the problem on such example:
Currently I have class hierarchy defined with the Code First approach as follows. E.F. has autogenerated a nvarchar(128) discriminator. It is not a key field.
I asked a question recently, and quite frankly, from the answer that was given, I am second guessing my entire strategy/how I design the classes and database.