The ADO.NET Entity Framework is a set of Object-Relational-Mapping (ORM) tools for the .NET Framework, since version 3.5 SP1.

learn more… | top users | synonyms (2)

0
votes
0answers
11 views

Merging a decrypted search of items within a LINQ query

I have the following search query: IQueryable<File> files = GetFiles(f => f.Clients.Any(fc => fc.Contacts.Any(c => c.Companies.Any(x => x.Name.Contains(searchText))))); ...
0
votes
1answer
29 views

How to make a search functionality that contains more than one word in ASP MVC4?

I have a model class, which contains public string FirstName { get; set; } public string LastName { get; set; } In the controller I have public ActionResult Index(string search) { ...
0
votes
0answers
9 views

Master/Detail DataGridViews not populating Details DataGridView

I'm using the following technologies: WinForms, Entity Framework 4.4 (5.0 on .NET 4.0), DBContext I have (what I think is) a very simple Master/Details form, that actually worked just fine before I ...
0
votes
1answer
37 views

How to save values in a list in ASP MVC 3

I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005. I am using also Entity Framework and Code First Method. I have a Form in a Partial View which the code is : <%@ ...
5
votes
0answers
64 views

Robust billing system design. Am I going completely in the wrong direction?

I am developing a hotel registration/billing application in ASP.Net, using the entity framework. When it comes to generating the bill for the registrant, my client has a lot of wacky criteria. ...
0
votes
1answer
18 views

Is there a better way to get an older value after an EntityState.Modified in EF5?

I just want to know if it existe a better way to get the value in database after an EntityState.Modified. My syntaxe : db.Entry(UserProfile).State = EntityState.Modified; var olderPhoto = ...
0
votes
2answers
48 views

How do I get the corresponding POCO object Type from an Entity Framework Metadata EntityType object?

I have annotated my Entity Framework Code First objects with some extra metadata, such as the DataTypeAttribute or possibly new, custom attributes. A version of this code (from ...
0
votes
1answer
24 views

How to query for columns in EF using a list of column names as string?

Let's say I have a table that I can query with EF + LINQ like this: var results = dbContext.MyTable.Where(q => q.Flag = true); Then, I know that if I want to limit the columns returned, I ...
0
votes
2answers
26 views

How to “Load” or “Get” a domain in Entity Framework?

In nhibernate you can use "Load" or "Get" to take an "Id" and load it into a domain model. How do you do something like that in EF? I have some "Ids" that I am sending from the client to my server. I ...
0
votes
1answer
25 views

specify Database to DbContext

I am using Entity Framework Code First and am creating a DbContext using a connection string. If the connection string does not specify an Initial Catalog, is there some way I can configure the ...
4
votes
3answers
94 views

Entity Framework with a Large Project

Me and my team are going to start a new Project and we are at the stage of exploring and testing some new (or not so new) technologies. Till today we were using classic ADO with DBDataReaders, ...
0
votes
0answers
28 views

EF 5 foreign key names

I have an entity called User and another called AvailableConsumption. There's an association of 0..1 to 1 between them and AvailableConsumption is supposed to have a User's FK called UserId (which ...
0
votes
1answer
15 views

real time project with ORM

Often heard that the performance of any ORM can not achieve the performance of a direct connection via ADO.Net, is this true? I'm riding an application that is in real time and I am in dilemma to ...
0
votes
1answer
30 views

EF load related collection partially

What I'm trying to achieve is return a list of Categories (in JSON) with the latest (Top 1) modified product in it. Say I have a Product & Category classes. Class Category{ public string Name ...
0
votes
1answer
20 views

Moving EF POCOs to separate project compilation errors

I have two separate projects, one that holds EF pocos and the MyDb.tt file that generates them. That project compiles fine. The remaining project that holds the MyDb.edmx will not compile. It has ...

1 2 3 4 5 1668
15 30 50 per page