entity-framework-4.1
Best approach for my EF 'DataBase'
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.[详细]
2023-04-11 03:24 分类:问答How to configure EF Code First to not map a specific type?
I was getting the following error when runing such this code: var dbContext = new MyDbContext(); var list = dbContext.Set<TEntity>().ToList();[详细]
2023-04-11 01:27 分类:问答RequiredAttribute on private fields
I have a entity public class Avatar { [Key] public int Id { get; set; } [Required] private string _linkInString { get; set; }[详细]
2023-04-11 01:20 分类:问答Attaching and detaching entities from context correctly in EF4.1
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[详细]
2023-04-11 01:18 分类:问答Automapper and Entity Framework Code First Not Working Correctly
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.[详细]
2023-04-11 00:47 分类:问答Use MVC 3 and Entity Framework, how do I map a different instance of the same class to 3 different collection properties?
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[详细]
2023-04-11 00:06 分类:问答Create sql server compact file in appdata folder
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[详细]
2023-04-11 00:05 分类:问答How to create a "dynamic" database structure (EF Code-First)
I\'m trying to implement web application using Entity Framework Code-First. I\'ll explain the problem on such example:[详细]
2023-04-10 23:50 分类:问答Entity Framework 4.1 Code First: How is the Discriminator determined?
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.[详细]
2023-04-10 17:49 分类:问答Entity Framework Class / Database Schema advice needed
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.[详细]
2023-04-10 17:02 分类:问答