Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8555289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:05:26+00:00 2026-06-11T15:05:26+00:00

While looking at Microsoft’s web site, I discovered that they no longer recommend using

  • 0

While looking at Microsoft’s web site, I discovered that they no longer recommend using Self-Tracking Entities.

Each link below is a MS resource that mentions not to use STEs:

  • Shows what templates are available by the Entity Framework team:
    EF Designer Code Generation Templates

  • Self-Tracking Entities

  • Recommended technologies for N-Tier applications

Does anyone know why Microsoft no longer recommends using STEs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:05:27+00:00Added an answer on June 11, 2026 at 3:05 pm

    (NOTE: As I don’t work for MS this is all conjecture based on their public statements and past history).

    The first article you posted “sort of” explains the reason, though not very clearly: they want you to use a better alternative and have no intention of fixing or improving STEs. Microsoft is putting STEs into the bin of ‘early failed experiments’, similar to RDO or Remoting or LINQ2SQL — they put something out to see how well it worked and it just didn’t.

    In general, it was always acknowledged by Microsoft that STEs were a first-stab at solving a real business problem but that they were clearly incomplete. In particular, they were really bad at attaching object graphs with shared entities, they didn’t support lazy loading, and had a number of other miscellaneous limitations.

    MS has apparently decided they’re not going to try to clean them up (notice that they’ve also deprecated the POCO template, for similar reasons). Since they aren’t planning to fix or improve the template, they want people to stop using it for new projects and move on to the better alternatives:

    MSDN data library

    DbContext Generator

    This template will generate simple POCO entity classes and a context that derives from DbContext. This is the recommended template unless you have a reason to use one of the other templates listed below.

    STEs existed mostly to support cases where entities were being disconnected and reconnected to their context, especially in serialization scenarios (WCF or web services, for example). In “standard” Entity Framework objects, all of the change tracking was done in the context, and attaching an existig entity to a context was problematic. STEs made that process easier, but at the cost of making almost everything else really hard.

    From what I have seen and experienced about the DbContext it is supposed to be a better alternative to solve this problem, though it doesn’t actually replicate what STEs did. The general consensus among heavy users of EF seems to be that serializing your EF entities end-to-end is a really bad idea. Instead you should be using DTOs and something like AutoMapper to map between your DTO and EF objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I discovered this quite by accident while looking for a file with a number
I am using the Microsoft.Build.BuildEngine to build a number of projects. Projects that do
I'm working on some customized authentication code based on Microsoft's membership stuff. While looking
while looking at some code I stumbled onto: throw /*-->*/new std::exception (//... and I
While looking through some old code I came across this gem: MyObject o =
While looking into parallel programming, and subsequently evaluation strategies, the question whether thunks are
While looking up the answer to this question: Why is an out parameter not
While looking for a way to temporarily save the search results when a user
While looking for ways to find the size of a file given a FILE*
While looking at some conceptual questions in C,I came across this question in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.