dbcontext
Many-to-Many insert failing - Entity Framework 4.1 DbContext
I am using DB first method, EF 4.1 with DbContext POCO code gen. My database has a many-to-many relationship as shown below:[详细]
2023-04-12 09:32 分类:问答Eager loading of multiple related entities
I need to add an extension method that can handle multiple Include to an already existing Repository class:[详细]
2023-04-11 00:41 分类:问答unable to query EntityFramework shared dbcontext reliably
I\'m trying to share a simple DbContext with 4 DbSets among multiple repositories, each of my repositories inherit from this base class[详细]
2023-04-10 21:40 分类:问答Why re-initiate the DbContext when using the Entity Framework?
I don\'t know if there is a better way to use the DbContext because it is not recommended to set is as static when working with WCF. So we are creating it each tim开发者_如何学编程e we want to access[详细]
2023-04-10 19:14 分类:问答EF and POCOs. How to properly set up my project
Recently I started working with EF 4.1 in .NET and had sort of positive experience until today when I tried to set up my own project (so far I was working on projects started by somebody else).[详细]
2023-04-10 04:52 分类:问答Entity Framework 4.1 doesn't put data into database on SaveChanges()
I have a problem when using the new Entity Framework 4.1. I started testing it a few days ago, and I am still new to the whole POCO concept and this new API.[详细]
2023-04-09 21:26 分类:问答How do I pass a connection string to the constructor of a database-first DBContext with Entity Framework 4.1?
For various reasons I would like to not store the connection string for my Entity Framework DB model in one of the various .config files.(I am using the latest and greatest DBContext API with the new[详细]
2023-04-09 14:47 分类:问答DbContext mapping tables dynamically
If i have a dbContext who\'s connection string is created during a context creation and then I want to map the table names based on some of that information....how would I pass in that data to the tab[详细]
2023-04-09 09:02 分类:问答How to mock DbContext [duplicate]
This question already has an answer here: Unit Testing and Mocking using RhinoMocks (1 answer) Closed 8 years ago.[详细]
2023-04-09 07:09 分类:问答When and where is the best place to instantiate ninject kernel
Been trying to get my head around using ninject in a webforms app. However i\'m still puzzled as where and when to instantiate the ninjet kernel with my \'bindings module\' and whether or not i need t[详细]
2023-04-03 21:22 分类:问答