Storage Class
Provides a set of methods to insert, query, and delete data in the persistent store.
Namespace: Neo.SmartContract.Framework.Services.Neo
Assembly: Neo.SmartContract.Framework
Syntax
Attributes
Name | Description |
---|---|
CurrentContext | Returns the current context of the store |
Methods
-
Delete methods, which delete a value from the persistent storage based on the given key:
-
Find methods, which find the value collection from the persistent storage based on the given key prefix:
-
Get methods, which query a value from the persistent storage based on the given key:
-
Put methods, which put data in key-value format into the persistent storage:
For all these methods if StorageContext is not passed in, CurrentContext is used by default.
Constructor
The Storage class is a static class and does not require a constructor.