What is the difference between using Entity framework self tracking entities and implementing Unit of work architecture? As i understand both are keep tracking of the objects, one db call for commit changes. So i cant figure out the difference of those. can some one point me about what should used in which case? I'm using entity framework 5 with WCF service application.
Difference between Entity framework self tracking entities vs Unit of work
369 Views Asked by Chamika Sandamal At
2
There are 2 best solutions below
0
Moho
On
The purpose of self tracking entities is that you don't need to keep the DbContext/ObjectContext alive to track changes to the entity object(s). The main feature of this is you can send an entity to another process (or host entirely, such as another WCF service on another host) that makes changes to the entity object, then returns that entity object to the calling process with change tracking still intact.
UoW coordinates changes made between multiple entity objects (greatly simplified explanation).
Related Questions in WCF
- Migrate ASMX web method to WCF which accepts string array
- Handling WCF enums when client and server have different versions of enum
- Objective tools for monitoring WCF APIs for latency, failures, and breakdowns?
- ASP.NET Core Web api + WCF
- WCF Authentification Android App - Maui WCF Webservice Basic
- WCF to WCFCore - Help Menu
- Problem with hashtag (#) character in httpclient and WCF
- How to add REST API to a .NET Framework Solution with existing WCF Services?
- How to run WCF service in VSCODE
- Adding HTTP Headers using MessageInspector in WCF (VB.NET) Not Working
- The data returned by the WCF service contains special characters, causing an error when the client attempts to receive it!"
- How to configure rest api’s in WCF project , making it hybrid solution
- WCF + PostgresQL. Npqsql connection is not open
- CORS Error that is not fixed with usual solution
- .NET project hosted on IIS is timing out in 5 minutes but works fine on localhost
Related Questions in ENTITY-FRAMEWORK-5
- Entity Framework 5 on SQL Server 2019, after an insert error (validation error) I can't insert any record
- Insert a List of complex objects without inserting navigational properties in Entity Framework
- PostgreSQL migration parameter "locale" must be specified
- error when updating the same item 2 times
- Column 'Id' in table 'AspNetRoles' is of a type that is invalid for use as a key column in an index
- Using the result of ThenInclude() rather than starting at Include() again. Entity Framework Core 5
- why Is my Update method not letting me get Current and Original entity values on SaveChangesAsnyc override?
- API allowing duplicate primary key
- Entity framework core override property issue
- View SQL generated by Entity Framework version 5
- Entity Framework Group by based on a Nullable Primary Key column
- How can I get empty months while grouping records by last 12 month in EF Core 5
- C# Asp.Net EntityFrameworkCore 5.0 _ManageNav.cshtml.g.cs deletes using statement on rebuild
- Entity Framework: can Include method work with a View?
- Entity Framework problem with reducing projection
Related Questions in UNIT-OF-WORK
- Domain driven design CQRS with multiple aggregates and bounded context
- "This session is provisioning a new connection; concurrent operations are not permitted" error using SQLAlchemy UOW and starlette_admin
- return View in .net core show that (IFeatureCollection has been disposed. Object name: 'Collection')
- How to implement GenericRepository and UnitOfWork with Identity.EntityFrameWorkCore and My own entities together
- MediatR Pattern CleanArchitecture with ASP.NET Core Web API
- C# ASP. NET web API design REST API call wrapper on existing Rest API
- How to write mock for unitofwork pattern
- How can I use Unit of Work to save two entities that are related 1:1 using Entity Framework Core and .NET? - SOLVED
- unit of work and repository update and add don't work
- Unit of Work has null repository property in Unit Test
- Repository Generic repository with Unit of Work for C# .net core with MongoDB
- Using default constructor with unit-of-work
- xUnit and moq with Unit of work and generic repository pattern in web api c#
- System.ObjectDisposedException: 'Cannot access a disposed context instance Using EntityFramework in NEt6
- Dot Net core 7 API including Identity, Dynamic role, claims in Repository pattern and UnitofWork
Related Questions in SELF-TRACKING-ENTITIES
- Entity Framework not changing EnityState on Update
- How to insert your Google Analytics tracking code in your Strikingly website with a free account?
- How to track disconnected entities over Web API
- Breeze: Track changes on new object
- Replacement of Self-tracking entities in Entity Framework 6
- Tracking changes to an entity framework object graph over multiple postbacks
- Using Entity Framework in a clustered enviroment (accessed remotely)
- Many queries and too much opening / closing of the same connection
- STE availability in Entity Framework 6
- Difference between Entity framework self tracking entities vs Unit of work
- Displaying list of self-tracking entities, filtering them by state
- EF4.x STE: Entity State not changed if SubItem is changed
- Attaching to context and keeping the entities objectstate
- I cant add an item to a Self Tracking Entity Collection with Navigation Properties
- Migrating from Self-Tracking Entities to DBContext
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
According to the MSDN, Self Tracking Entities are no longer Recommended
http://msdn.microsoft.com/en-us/data/jj613924.aspx