Class LocalIdentifier
Represents an entity database identifier.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Export
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class LocalIdentifier : IEquatable<LocalIdentifier>
Constructors
LocalIdentifier()
Initializes an empty instance.
Declaration
public LocalIdentifier()
LocalIdentifier(Int32, EntityType)
Initializes new instance with provided identifier and entity type.
Declaration
public LocalIdentifier(int id, EntityType type)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id | The entity database identifier. |
EntityType | type | The type of identified entity. |
Properties
EntityType
Gets or sets the type of identified entity.
Declaration
public EntityType EntityType { get; set; }
Property Value
Type | Description |
---|---|
EntityType |
Id
Gets or sets the database identifier.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Equals(LocalIdentifier)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(LocalIdentifier other)
Parameters
Type | Name | Description |
---|---|---|
LocalIdentifier | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(LocalIdentifier, LocalIdentifier)
Determines whether the specified objects are equal.
Declaration
public static bool Equals(LocalIdentifier obj1, LocalIdentifier obj2)
Parameters
Type | Name | Description |
---|---|---|
LocalIdentifier | obj1 | First object to compare. |
LocalIdentifier | obj2 | Second object to compare. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns the text representation of the object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The text representation of the object. |