Class SyncEntity
Inheritance
System.Object
SyncEntity
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Sync
Assembly: Terrasoft.Sync.dll
Syntax
public class SyncEntity
Constructors
SyncEntity(Entity, SyncState)
Declaration
public SyncEntity(Entity entity, SyncState state)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
SyncState | state |
Properties
Action
Действие которое необходимо сделать с этой ентити
Declaration
public SyncAction Action { get; set; }
Property Value
Type | Description |
---|---|
SyncAction |
Entity
Declaration
public Entity Entity { get; }
Property Value
Type | Description |
---|---|
Entity |
EntityId
Declaration
public Guid EntityId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
EntitySchemaName
Declaration
public string EntitySchemaName { get; }
Property Value
Type | Description |
---|---|
System.String |
ExtraParameters
Дополнительная информация, которую может привязать к конкретной ентити внешний провайдер для своих нужд
Declaration
public string ExtraParameters { get; set; }
Property Value
Type | Description |
---|---|
System.String |
State
Последнее действие произведенное над ентити
Declaration
public SyncState State { get; }
Property Value
Type | Description |
---|---|
SyncState |
Methods
CreateNew(Entity)
Declaration
public static SyncEntity CreateNew(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity |
Returns
Type | Description |
---|---|
SyncEntity |
CreateNew(UserConnection, String)
Declaration
public static SyncEntity CreateNew(UserConnection userConnection, string schemaName)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | |
System.String | schemaName |
Returns
Type | Description |
---|---|
SyncEntity |