Class LocalProvider
Provides methods for working with local store items.
Inheritance
System.Object
LocalProvider
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 LocalProvider
Constructors
LocalProvider(UserConnection)
Declaration
public LocalProvider(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection |
Properties
MaxItemsPerSelect
Declaration
public int MaxItemsPerSelect { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StoreId
Local storage id.
Declaration
public Guid StoreId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
UserConnection
Declaration
public UserConnection UserConnection { get; }
Property Value
Type | Description |
---|---|
UserConnection |
Methods
AddItemSchemaColumns(EntitySchemaQuery, EntityConfig)
Adds columns from entityConfig
into esqForFetching
query.
Declaration
public static void AddItemSchemaColumns(EntitySchemaQuery esqForFetching, EntityConfig entityConfig)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQuery | esqForFetching | EntitySchemaQuery instance. |
EntityConfig | entityConfig | EntityConfig instance. |
ApplyChanges(SyncContext, LocalItem)
Applies chenges of entities
to local store.
Declaration
public void ApplyChanges(SyncContext context, LocalItem entities)
Parameters
Type | Name | Description |
---|---|---|
SyncContext | context | SyncContext instance. |
LocalItem | entities | LocalItem instance. |
FetchItem(ItemMetadata, SyncItemSchema, Boolean)
Creates LocalItem instance by itemMetaData
.
Declaration
public LocalItem FetchItem(ItemMetadata itemMetaData, SyncItemSchema itemSchema, bool loadAllColumns = false)
Parameters
Type | Name | Description |
---|---|---|
ItemMetadata | itemMetaData | ItemMetadata instance. |
SyncItemSchema | itemSchema | SyncItemSchema instance. |
System.Boolean | loadAllColumns | If |
Returns
Type | Description |
---|---|
LocalItem | Initiated LocalItem instance. |
Remarks
LocalItem also contains deleted items metadata.