Visual Basic (Declaration) | |
---|---|
<FlagsAttribute()> Public Enum EntityState Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As EntityState |
C# | |
---|---|
[FlagsAttribute()] public enum EntityState : System.Enum, System.IComparable, System.IConvertible, System.IFormattable |
C++/CLI | |
---|---|
[FlagsAttribute()] public enum class EntityState : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable |
Member | Description |
---|---|
Added | The entity has been added to the EntityManager. |
AllButDetached | All states except detached. |
AnyAddedModifiedOrDeleted | Added or Modified or Deleted. |
Deleted | The entity was deleted using the Entity.Delete() method. |
Detached | The entity has been created but is not part of any EntityGroup. A Entity is in this state immediately after it has been created and before it is added to the EntityManager, or if it has been removed from the EntityManager. |
Modified | The entity has been modified and EntityManager.SaveChanges() has not been called. |
Unchanged | The entity has not changed since last queried or saved. |
Note that EntityAspect.AcceptChanges is called by the EntityManager after a successful EntityManager.SaveChanges call, and there is generally no need to call this method explicitly.
System.Object
System.ValueType
System.Enum
IdeaBlade.EntityModel.EntityState
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family