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
1 answer

ESQL doesn't work in self-tracking entitites

I've followed this walkthrough to create a wcf+ef+self-tracking entities project. Walkthrough: Serialize Self-Tracking Entities In the Service, Linq to Entities can work well, but if I add a method which uses ESQL, for example: public string Test() …
James
  • 2,570
  • 7
  • 34
  • 57
0
votes
1 answer

A SQL insert is generated as well as an update when updating

I am using Entity Framework 4 self-tracking entities template (STE) and SQL Server CE. I am seeing some very odd behavior. Everything works great if I just insert or update, delete. However if I insert an object and then update it an UPDATE and an…
0
votes
1 answer

Eliminating cycles in EF 4 STE object graph

I went back to the "drawing board" on a post I had written earlier concerning a StackOverflowException while trying to serialize an EF STE object graph... After failing to successfully adjust the stack size in IIS7, as described here, I decided to…
0
votes
1 answer

EF4.x and WCF Service (Persistence ignorant) Updating nested entities with 1 to n and m to n relationship.

I have SQL Server database and would like to use LINQ to Entities and wrap it with WCF layer and expose it to client. (typical N-Tier architecture). ALso would like to have Persistence ignorant option and also would like to have an option ignore…
0
votes
1 answer

implement methods when i use Self-Tracking Entities

how i can use Self-Tracking Entities in WCF Services to implement ServiceContract this my ServiceContract in IPbService.cs namespace PhoneBookService { [ServiceContract] public interface IPbService { [OperationContract] …
Tarek Saied
  • 6,482
  • 20
  • 67
  • 111
0
votes
1 answer

Merge Self-tracking entities

Graph of objects stored in the database and the same object graph is serialized into a binary package. Package is transmitted over the network to the client, then it is necessary to merge data from the package and data from the database. Source code…
0
votes
0 answers

FaultException with self tracking entities as property of the exception?

I have a WCF service with one async method, updateUsers. The username is unique, so when I save changes, if exists a username that is assign to a new user, I get an UpdateException. I Create a custom exception, UniqueKeyUsersException, that have…
Álvaro García
  • 18,114
  • 30
  • 102
  • 193
0
votes
1 answer

self tracking entities on update property not change its state

I have using self tracking entities and I do the following: 1.- I create a new entity 2.- I modify one of its properties, for example entityName="Dummy" After the modification, the state of the entity is still unchanged, so when I do the…
Álvaro García
  • 18,114
  • 30
  • 102
  • 193
-3
votes
1 answer

How to insert your Google Analytics tracking code in your Strikingly website with a free account?

Given: website is ready on Strikingly free account no access to my code Question: how to insert my tracking code? can i use a tool and hide the code in it?
1 2 3
11
12