entity-framework-4
EF return parent entity only
I\'m having an issue when trying to serialise an entity. An error is being through saying that the query may result in a circular query. Ideally I just want to pull out the entity with no relationship[详细]
2023-04-07 05:11 分类:问答Entity Error in GDataDB example
Im getting the error \"the type or namespace name \'Entity\' could not be found\" from the following code snippet.[详细]
2023-04-07 02:48 分类:问答Intercept the 'Expression' property of IQueryable Provider and gets its e-sql
Normally I can query an entity context using linq in the typical way, IQueryable<Product> query = from p in db.Products[详细]
2023-04-07 00:57 分类:问答Entity Framework Context in Singleton
I\'m building a App that use Context of EF in Singleton Pattern like NHibernate work with Session: public class DbContextFactory[详细]
2023-04-06 15:23 分类:问答Create custom reports with crystal reports and entity framework 4
I want to allow users of a asp.net mvc 2 application, creating dynamicly reports. In a SQLServer Database is a table with all tasks for a user. Every task depends on a project and a user. What I want[详细]
2023-04-06 11:55 分类:问答Avoiding round-trips when importing data from Excel
I\'m using EF 4.1 (Code First). I need to add/update products in a database based on data from an Excel file. Discussing here,开发者_如何学Go one way to achieve this is to use dbContext.Products.ToLis[详细]
2023-04-06 06:36 分类:问答How to get all records within the last Two Days from the current Date using EF 4?
EF 4 in C#. I have my query, at the moment I\'m able to filter the result by the current Date (just date not considering TIME).[详细]
2023-04-06 04:22 分类:问答How to add a fake EF4 Rerefence with AutoFixture ( or without if possible )
I have the following code: public class FakeOrderRepository:IOrderRepository { private static Fixture fixture = new Fixture();[详细]
2023-04-06 03:09 分类:问答MembershipProvider custom - Error on saving using EF POCO 4.1
I\'m customizing the class MembershipProvider. When navigating to Asp.net Web Site Administration Tool can list the users normally.[详细]
2023-04-06 01:50 分类:问答EntityFramework knowing when being materialized
I realize there is an event ObjectMaterialized with gets called on ObjectContext after an object is materialized.[详细]
2023-04-06 01:27 分类:问答