Method | Description | |
---|---|---|
Account ( ) : System |
Constructor. The method initializes the base class.
|
|
Add ( |
The Add verb inserts an account and all subentities in the underlying data-store. On success, the identity of the newly inserted instances will added to the document and all subdocuments.
|
|
Delete ( |
The Delete verb deletes existing account and all subentities in the underlying data-store. Should no account instance be found in the data-store that matches the id of the document, the transaction result will set accordingly.
|
|
FillChangeLog ( |
fill up a datatable with the next 11 id's of inserted, modified and deleted accounts since the given token.
|
|
GetAll ( NorthwindConfig config, string whereExpression, System.Data.OleDb.OleDbParameter oleDbParameters ) : List |
||
GetAll ( NorthwindConfig config, string whereExpression, int startIndex, int count ) : List |
||
GetDocument ( Identity identity, |
The GetDocument verb retuns an complete AccountDocument containing the data associated with an existing account instance. Should no account instance be found in the data-store that matches the identity passed as a parameter it will return an empty account document marked as deleted within the given identity.
|
|
Update ( |
The Update verb ammends an existing account and all subentities (Person, Email, Address, Phone) in the underlying data-store. The data as it should be stored is found in the parameter document. Should no account instance be found in the data-store that matches the id of the document, the transaction result will set accordingly.
|
Method | Description | |
---|---|---|
GetDocument ( |
||
GetDocument ( string accountId, NorthwindConfig config ) : |
returns a complete account document without using a token
|
|
GetEmailsCollectionFromCustomer ( |
||
GetEmailsCollectionFromCustomer ( string customerId, |
||
GetNewCustomerID ( string customerName, NorthwindConfig config ) : string | ||
GetRow ( |
get a northwind account row, which is a union of customers and suppliers, from the given account document and set the transaction status on the documents
|
|
SetIdentitiesForAccounts ( string accountID, |
ste the Identies of the account sub entities address, phone and person
|
|
StoreCustomer ( |
|
|
StoreSupplier ( |
||
UpdateEmailsCollectionFromCustomer ( string customerId, |
public Add ( |
||
doc | Document (without ID) containing the data to be stored | |
config | NorthwindConfig | The configuration object |
result | List |
|
return | void |
public Delete ( |
||
doc | Document (incl. ID) containing the data to be stored | |
config | NorthwindConfig | The configuration object |
result | List |
|
return | void |
public FillChangeLog ( |
||
table | tha DataTable to filled up. The first column contains the identity | |
config | NorthwindConfig | The configuration object |
lastToken | the last token | |
return | int |
public GetAll ( NorthwindConfig config, string whereExpression, System.Data.OleDb.OleDbParameter oleDbParameters ) : List |
||
config | NorthwindConfig | |
whereExpression | string | |
oleDbParameters | System.Data.OleDb.OleDbParameter | |
return | List |
public GetAll ( NorthwindConfig config, string whereExpression, int startIndex, int count ) : List |
||
config | NorthwindConfig | |
whereExpression | string | |
startIndex | int | |
count | int | |
return | List |
public GetDocument ( Identity identity, |
||
identity | Identity | Identity of the account |
lastToken | the last given Token to mark the account status as updated or created | |
config | NorthwindConfig | The configuration object |
return |
public Update ( |
||
doc | Document (incl. ID) containing the data to be stored | |
config | NorthwindConfig | The configuration object |
result | List |
|
return | void |