entity-framework-4
httpcontext extension and IOC considerations
Hi created an extension method to control the lifecycle of an EF context.My code is below public static Entities GetCentralRepositoryContext(this HttpContext httpcontext)[详细]
2023-04-12 18:29 分类:问答EF 4.1 Code First modify generated SQL query
I am using EF Code First to perform queries on the database. However, I would like to modify the generated SQL commands by CF to add extra things to the SQL Server DB. Is it possible to chang开发者_开[详细]
2023-04-12 18:10 分类:问答Accepting A IENUMERABLE model post in a controller in mvc 3 vb.net?
I have a view in my app that uses a @modeltype ienumerable of (xxxxxxx.abc), and uses a for each loop to populate the view. This view has select boxes that show up next to each item in the view. When[详细]
2023-04-12 17:52 分类:问答calling stored procedures with EF 4.0 and using output parameters
Say I have a stored procedure GetAddressInfo(addressId int, errorCode int output). The stored procedure returns AddressLine1 and State if addressId matches a row in the database. If row is not found,[详细]
2023-04-12 12:18 分类:问答Entity Framework Association with Filter
I have the following model in my model: Patient Vendor Organization each of these entities needs Addresses.[详细]
2023-04-12 08:03 分类:问答Bulk Database Entries - Calculate Commission
I am writing an MVC 3 project and I\'m using entity framework. I\'ve written a method that generates bulk database entries, and this is for client\'s Invoices. The system is for a college and each stu[详细]
2023-04-12 05:57 分类:问答How best to extend Entity Framework generated POCO objects whilst maintaining the relationships
I\'m working on a project where I\'ve created a core DAL / BLL with the Entity Framework and generating POCO objects. I\'ve created partial classes for the POCO\'s to contain the core functionality th[详细]
2023-04-12 05:40 分类:问答define scalar function with ef4.1 code first?
i have a function called distancebetween i wnat to define it in scalar valued function to call it by linq[详细]
2023-04-12 05:18 分类:问答Entity Framework 4.1 - How to "Force" EF To Go To DB Instead of Using Graph?
Here\'s the scenario, i have a website, which in a single 开发者_StackOverflowHTTP request (HTTP POST), i need to do the following:[详细]
2023-04-12 04:29 分类:问答Recommended structure for entity framework for a CRUD DAL for WCF
I need to implement a back-office layer for an application. It will have to implement the data access through EF4, and expose the data access as CRUD through WCF services. The using of WCF Data Servic[详细]
2023-04-11 23:11 分类:问答