Enlist some entity states supported in Entity Framework?

devquora
devquora

Posted On: Feb 22, 2018

 

An Entity may be in one of the five states mentioned below:

  • Unchanged: The Entity happens to be traced by the factors and subsist in the Database. Its property worth remains unchanged from the worth of the Database.
  • Deleted: The Entity happens to be traced by the factors and subsist in the Database but remains spotted for deletion from the Database for the later period when SaveChanges is summoned.
  • Modified: The Entity happens to be traced by the factors and subsist in the Database and all or some of its property worth remains modified.
  • Added: The Entity happens to be traced by the factors but doesn't subsist in the Database.
  • Detached: The Entity happens to be untraceable by the factors.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Entity framework interview questions

    Explain what is Entity Framework?

    Entity Framework happens to be an open-source ORM or object-relational mapping framework utilized for ADO.Net. It is a set of mechanization that assists in the improvement of data-oriented software ad...

    Entity framework interview questions

    What is new in entity framework 7?

    The new features in entity framework 7 include the following:New platforms: .NET along with the other distinct technologies like WPF, ASP.NET, WinForms is supported by Entity Framework 7.  E...

    Entity framework interview questions

    How to check installed version of Entity Framework?

    To check, If you open up the reference file and detect system.entity.data, click the module and then inspect the runtime version numerical in the Properties explorer and you can witness the subversion...