The ADO.NET Entity Framework is a set of Object-Relational-Mapping (ORM) tools for the .NET Framework, since version 3.5 SP1.
0
votes
1answer
19 views
Using calculated property in EF Code First
I have this Entity:
public class MyDTO
{
int id;
public int Id
{
get { return id; }
set { id = value; }
}
DateTime createdOn;
...
0
votes
0answers
3 views
Entity Framework migrations nor working after upgrading from EF 4.3 to 5.0
I have a fully working Entity Framework 4.3 project with migrations which I have just upgraded to EF 5.0.
I have now added a couple more migrations with EF 5. Everything works if I upgrade from an ...
0
votes
0answers
7 views
web api odata with v3 filters any all not working with entity framework.
I am trying to use the new filters 'any' and 'all' with odata and entityframework.
For ex: i want to find out the employees who has dotnet skills.
so i have a skill model class with name as one of ...
1
vote
2answers
17 views
Undo DbContext.Add()
I have the problem, that I've added a entity to my DbContext using _db.Article.Add(artícle), but want to UNDO this before I'm executing _db.SaveChanges.
I haven't found anything, but I tried to use ...
0
votes
1answer
12 views
Entity Framework 5 - Get non related / navigable entities
Here is my case, I just want to query the NON related / navigable properties of an entity
public IQueryable<REQUIREMENTS> GetNotAssociatedRequirements(decimal projectID, decimal useCaseID)
{
...
1
vote
0answers
21 views
Deploying codefirst is not creating all table fields
Im having some issues trying to deploy a code first based mvc4 application to azure.
It works fine when creating a localdb however when trying to deploy to azure the UserProfile table only Username ...
0
votes
1answer
26 views
Filter ComboBox by selected item of another ComboBox
I have a County ComboBox bound to an entity (EF). There is another ComboBox for Area's. These controls are in an edit form.
So the user has chosen these values. In this form the user can edit the ...
0
votes
1answer
27 views
Entity Framework code first. savechanges creating new object
I am using the codefirst approach with my project and here is my setup where I am getting duplicate records each save:
public class Account
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
...
0
votes
1answer
8 views
No data available with Entity Framework when consumed by second project
I have a web app that uses EF5 to map to a SQL database. This is the standard membership database with some additional tables I've added. Works like a champ in that project.
I have a second project, ...
-1
votes
0answers
19 views
GenericMethods Call
I have a method that sets for me several parameters. this method is located in an asmx ,
I tansmit data , and the parameter to be set ( a class ).
the method should call a method within the ...
0
votes
2answers
17 views
Entity Framework 4 - Query parent table and eager load 1 (single) child record
Can't seem to find a good way to search for this online. I'm trying to get all parent records (cars) from a database and I want to include only 1 single child item (image) either in the original ...
0
votes
1answer
15 views
Using one html.editorfor to fill in two model fields
Im trying to use only 1 html.editorfor to fill in two model field in each of my model.
I want the value of this editorfor to be also inserted to my Clientes0013.Client0013
<div ...
0
votes
0answers
13 views
ObjectContext.SaveChanges: add new row wpf datagrid displays a duplicate
I am having some trouble with Entity Framework 4.0 with SqlCE 3.5 in a WPF app.
When calling ObjectContext.SaveChanges() int the RowEditEnding handler, the database gets updated correctly but the ...
1
vote
1answer
74 views
How can I speed this LINQ query up?
I know that there's a much more efficient way to do this, using predicates, but being fairly new, I'm not sure exactly how to go about it..
List<HousingAssignment> list;
using (OEContext ...
0
votes
0answers
31 views
Variable is already declared as private
I have an entity framework model (built using database first) which I have just updated from the database. I now have a whole series of errors in the model, typical of which is;
_Addresses is ...