Questions tagged [self-tracking-entities]

In an Entity Framework-based application, a context is responsible for tracking changes in your objects. Self-Tracking Entities (STEs) can help you track changes in any tier and then replay these changes into a context to be saved.

In an Entity Framework-based application, a context is responsible for tracking changes in your objects. You then use the SaveChanges method to persist the changes to the database. When working with N-Tier applications, the entity objects are usually disconnected from the context and you must decide how to track changes and report those changes back to the context.

Self-Tracking Entities (STEs) can help you track changes in any tier and then replay these changes into a context to be saved.

WARNING: STEs are no longer recommended.

More Info

174 questions
0
votes
2 answers

Clone Self-Tracking Entities in EF 4.0?

How I can clone a Self-Tracking Entity Graph in EF 4.0? Thanks
0
votes
1 answer

ObjectQuery error when using STE and WCF

I received this error when i implement STE in EF4 and WCF "Object mapping could not be found for Type with identity 'NorthwindModel.Customer'." if I'm not using STE (in single project), this code is working. Walkthrough: Serialize Self-Tracking…
0
votes
1 answer

Entity Framework STEs and many-To-many associations

I'm fairly new to EF and STE's, but I've stumbled on a painful point recently, and I'm wondering how others are dealing with it... For example, suppose I have two STE's: Employee and Project. It's a many-to-many relationship. Each entity has a…
0
votes
1 answer

need to add max length to entity framework self-tracking entity template

I need to add max length to my self tracking entities I have tried this but it's done using the EntityObject Generator and not the Serf-Tracking Entity Generator the template is very different, I have tried to cut and paste the code, but I always…
freddoo
  • 6,770
  • 2
  • 29
  • 39
0
votes
1 answer

Notmapped properties in POCO or Self Tracking Entities

Is it possible have custom properties in POCO or STE. as a rule, STE or POCO property names should match table column names. so is it achievable in STE? ie. Table has 3 columns (Id, Name, DateOfBirth). Whether entity can have Age (custom property…
Anand Kumar
  • 395
  • 2
  • 7
  • 18
0
votes
1 answer

STE ChangeTracker.OriginalValues always Empty

I am having trouble getting OriginalValues from my EF STE DTO. var _Item = new MyClass(); _Item.StartTracking(); // ChangeTracker.OriginalValues.Count = 0 _Item.Name = "Jerry"; // ChangeTracker.OriginalValues.Count = 0 _Item.Name = "Bob"; …
Jerry Nixon
  • 31,313
  • 14
  • 117
  • 233
0
votes
1 answer

EF (Self Track Entities) in Winform Application

I want to use Entity Framework(with Self Track Entities) in my winform application; but i could not find any example of STE(Self Track Entities) with winform. Can someone tell if it's not recommended to use with winform? As far as I know the use of…
user899055
  • 301
  • 1
  • 6
  • 17
0
votes
3 answers

Self tracking entity with "check points"

I'm working on a WPF 4/Entity Framework 4 (self tracking entities) application. As a proof of concept, I'm creating a fairly simple UI that's bound to an EF entity. Our users want to be able to edit the entity, but have the option to accept or…
0
votes
1 answer

Entity Framework Self-Tracking and Client not tracking changes

How come my client isnt tracking changes. My code below Server WCF with selftracking entities enabled public class TrialService : ITrialService { public Project GetProjectByID(int _projectId) { var db = new…
Christopher Leach
  • 568
  • 1
  • 5
  • 16
0
votes
1 answer

Error with multiple open data readers for child entity

I have a ef 4 model and I'm using self tracking entities. In this model there is an entity called Organisation. Each Organisation can have many Locations (addresses). If I try to select a single location (so I can delete it), thus: var location =…
Jonesie
  • 6,997
  • 10
  • 48
  • 66
0
votes
1 answer

How to load Entity Framework Self Track TrackableCollection relationship data only when needed?

I use Entity Framework 4 and Self Tracking Entities. The schema is like: Patient -> Examinations -> LeftPictures -> RightPictures So there is TrackableCollection of these two relationships Patient 1 - * ....Pictures. Now when…
0
votes
2 answers

WCF, Entity Framework 4.1 and Entity's State

I am developing an application which will expose WCF services. I am using Entity Framework 4.1 at the DAL. The problem is when I load some entity (let say a Customer that has Order which in turn has OrderDetail). After loading it I make some changes…
0
votes
1 answer

deserialized Entity Framework objects creating duplicate records in my database

I have some .NET 4 entity framework objects that I get from the DB, then I serialize them to XML. Then I quit the WPF app (clear out the memory). Then I restart the WPF app and I read them (deserialize) back into a List<> but never attach them to…
0
votes
2 answers

Entity Framework 4.0 Self Tracking Load Navigation Properties

I have this code for my Data Access class where I want to load all the Patients where they some should have, Patient.Addresses, Patient.Examinations, Examinations.LeftEye, Examinations.RightEye.... How to Load all the related data with a patient? I…
George Taskos
  • 8,324
  • 18
  • 82
  • 147
0
votes
1 answer

Using STE entities in WCF Client using Java Application Client

I have developed my DAL using Entity Framework (Self Tracking Entities). I have written a WCF Service which exposes some CRUDE operations on those STEs. I want to use my WCF service in a java application (client). Would the STEs work properly in my…
Baig
  • 1,489
  • 1
  • 25
  • 41