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
4 views

Reference another Aggregate Root inside another Aggregate root?

I'm done DDD for a couple of years now and still its challenging when it comes to designing Aggregates. Thats the fun part of DDD and it makes your head spin. I'm asking this question since I'm ...
0
votes
0answers
4 views

Entity Framework: Entity with composite key as PK/FK throws exception

On escalado, throws the exception. It throws with or wihtout Include. static void Main(string[] args) { try { using (var context = new CKContext()) { ...
0
votes
0answers
7 views

Provider did not return a DbSpatialServices instance

I'm having a problem with Entity Framework and retrieving data from the database. I got a table. This table contains a field with the geography type. When I run my code: IEnumerable<Locatie> a ...
0
votes
0answers
13 views

Entity Framework Select All Users and Derived with Navigation Property

public class A { public int Id; } public class B : A { public ICollection<Car> Cars { get; set; } } var result = context.Include(???).As.ToList(); Ho to select all of type B and A ...
0
votes
0answers
8 views

Is it possible to map more than one stored procedure for CUD operations for splitted entity?

I can map one entity to several tables in DB. Each table contains its own set of CUD procedures. Can I somehow map several SPs to CUD operations of the entity? Or the only way to go is to create SP ...
0
votes
1answer
80 views

How to access properties by name?

This is a simple example on how I update a value in the database: var context = new dbEntities(); var car = context.CarTable.Where(p => p.id == id).FirstOrDefault(); car.Make = "Volvo"; ...
0
votes
1answer
7 views

Model-First with Existing DB. New DB always attempts to be created. Results in 'CREATE TABLE permission denied in database'

I created a model-first diagram pointing to a couple of views on an existing DB. When I attempt to query said DB, EF attempts to create & update said DB (despite being told not to). As with many ...
0
votes
1answer
12 views

TransactionScope with two datacontexts doesn't roll back

I am trying to solve situation with rolling back our datacontexts. We are using one TransactionScope and inside two data contexts of two different databases. At the end we want to save changes on ...
0
votes
0answers
14 views

Error Updating Child Entities

Getting the following error when trying to update a model and its child collection: An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple ...
0
votes
1answer
9 views

How can I create a generic update method for One to Many structures in Entity Framework 5?

I am writing a web application, such that I get different objects back from the web that need to be either updated or added to the database. On top of this, I need to check that the owner is not ...
0
votes
0answers
12 views

Get list of select items from database and populate objects

I am trying to Populate an object inside another object while avoiding two things: Getting all the items in table Making a separate call to the db for each item Here is my code Classes public ...
0
votes
0answers
21 views

Entity Framework Errors Intermittent

I am working on a Dotnetnuke site and with my custom modules, I use the entity framework. Every now and then I will make a code change and refresh and get a long error: ...
0
votes
0answers
9 views

Error when attempting to insert into Junction Table in Entity Framework?

I'm attempting to insert into a Junction Table to create a M:M relationship using Entity Framework. EF has automatically created Collections on both Models to symbolize the Junction Table. In my ...
0
votes
0answers
9 views

Self-referencing relationship in Entity Framework with child includes

Is there any way of including child object within a self referencing relationship. For example, I have an object like this: class Activity { public int Id {get;set;} public String Name ...
0
votes
0answers
14 views

Architecture for exporting data (with or without Entity Framework?)

I'm working on an existing application that does different calculations on similar sets of data. A set of 'master data' entities exists, and three different sets of calculation entities as well. They ...

1 2 3 4 5 1761
15 30 50 per page