Interface IOperation
Namespace: Mars.Core.Data.Wrapper
Assembly: Mars.Core.dll
Syntax
public interface IOperation : IPlatform, IDisposable
Methods
| Improve this Doc View SourceClear()
Drops the complete execution context and collections.
Declaration
void Clear()
Contains(Int32)
Checks whether the specified
key
is contained by the implementation of this operation.
Declaration
bool Contains(int key)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The identifier of an object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, when the key is associated to an object; false otherwise. |
Insert(Int32, IDomainData)
Add the data object associated to the respective
key
Declaration
void Insert(int key, IDomainData data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The identifier of this data object. |
IDomainData | data | The object containing the subset of data values to store. |
Remarks
The
|
Improve this Doc
View Source
key
can be used to match data objects to model objects.
MigrateTo(IOperation)
Moves the data permanently from the current platform the specified .
Declaration
void MigrateTo(IOperation targetPlatformOperation)
Parameters
Type | Name | Description |
---|---|---|
IOperation | targetPlatformOperation | The target platform supporting an operation where is move to. |
Remove(Int32)
Removes the data object from the respective store.
Declaration
void Remove(int key)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The key of the object to remove. |
ScanGeometries()
This operation provides a simple scan and projection
on all data objects with associated spatial reference.
Declaration
IEnumerable<IDomainData> ScanGeometries()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDomainData> | Returns an iterator on all stored spatial objects with their non null geometry and unique identifier. |
Remarks
This operation returns a subset (only data with spatial reference) in contrast to
ScanKeys() returning
|
Improve this Doc
View Source
all
data objects keys.
ScanKeys()
This operation provides a simple scan and projection
of all containing keys on the platform.
Declaration
IEnumerable<int> ScanKeys()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> | Returns an iterator on all stored integer keys, identifying each data objects. |
Update(Int32, IDomainData)
Updates the data (and possibly its geometry) of an object identified by
key
Declaration
void Update(int key, IDomainData data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The key of the object to update. |
IDomainData | data | The new state of the instance. |