Get or set the URI of the resource that this entity object is attached to
Namespace: BrightstarDB.EntityFrameworkAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
| C# |
|---|
protected string Identity { get; set; } |
| Visual Basic |
|---|
Protected Property Identity As String Get Set |
| Visual C++ |
|---|
protected: property String^ Identity { String^ get (); void set (String^ value); } |
| F# |
|---|
member Identity : string with get, set |
Property Value
Type: String
Remarks
Once a BrightstarEntityObject is attached to a context (either by calling the
Attach(EntityContext) method or setting the Context and Identity
properties to non-null values), the identity cannot be modified.
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | Thrown if an attempt is made to set this property with the object attached to a context. |