C-DEngine 5.105

IStorageService..::..EdgeDataCreateStore Method

Call to Create a new store (a Table in the SQL Server) in the Storage Service

Namespace:  nsCDEngine.Engines.StorageService
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


void EdgeDataCreateStore(
	Type MyType,
	Object pDefaults,
	string pDeviceName,
	string StoreDescription,
	bool ResetContent,
	Action<TSM> CallBack,
	string pTableName
)
Sub EdgeDataCreateStore ( _
	MyType As Type, _
	pDefaults As Object, _
	pDeviceName As String, _
	StoreDescription As String, _
	ResetContent As Boolean, _
	CallBack As Action(Of TSM), _
	pTableName As String _
)
void EdgeDataCreateStore(
	Type^ MyType, 
	Object^ pDefaults, 
	String^ pDeviceName, 
	String^ StoreDescription, 
	bool^ ResetContent, 
	Action<TSM^>^ CallBack, 
	String^ pTableName
)

Parameters

MyType
Type: Type
The Type of the class you want to store
pDefaults
Type: Object
An instance of the MyType with default data to store in the table if a new table is created
pDeviceName
Type: String
The Name of the Device that owns this store
StoreDescription
Type: String
A friendly description of the data to be stored
ResetContent
Type: Boolean
CallBack
Type: Action<(Of <(<'TSM>)>)>
This callback is called when the call is finished and contains a TSM with the result. The TXT parameter contains "DATARETREIVED:" and the PLS contains a serialized "TheDataRetreivalRecord"
pTableName
Type: String
Custom TableName if required