ConnectorDataItemClass Class | ![]() |
Namespace: SOWIData.Database
[Missing <typeparam name="DataItemClass"/> documentation for "T:SOWIData.Database.Connector`1"]
The ConnectorDataItemClass type exposes the following members.
Name | Description | |
---|---|---|
![]() | ConnectorDataItemClass |
Standard database connector for data handling
|
Name | Description | |
---|---|---|
![]() | ConnectionString |
Gives database connection string of the app used
|
![]() | DB |
Database object. Sets with method SetDB.
|
![]() | NameUnchanged |
Flag no change value in field Name Default: false
|
![]() | NameUnique |
Flag whether Name unique Default: false
|
![]() | Provider |
Gives data provider type back.
|
![]() | RecordStandard |
Which data items read from database? All, active or archived records.
|
![]() | SortDirectionStandard |
Standard sort direction by sort field for example method GeAll
|
![]() | SortFieldStandard |
Standard sort field for example method GeAll
|
![]() | UserName |
Gives user name of the app used
|
![]() | XML |
XML object. Sets with method SetDB
|
Name | Description | |
---|---|---|
![]() | Count(Records) |
Gives the count by all, active or archive data records
|
![]() | Count(String, Records) |
Gives the count by all, active or archive data records and filtering by Name
|
![]() ![]() | Delete(ListInt32) |
Delete all data items
|
![]() | Delete(Int32) |
Delete a data item - set Status = Delete (except XML provider)
|
![]() | Delete(String) |
Delete data item by Name
|
![]() | Equals | (Inherited from Object.) |
![]() | Exist(Int32) |
Check exist data item by ID (hits can be multiple)
|
![]() | Exist(String) |
Check exist data item by Name (can be multiple)
|
![]() | ExistOne |
Check exist one data item by Name
|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetAll |
Get data list by standards value without parameter.
|
![]() | GetAll(Records) |
Get data list by Records (all, active, archived)
|
![]() | GetAll(String, SortDirections) |
Get data list details with sort parameters
|
![]() | GetAll(String, Operators, Object) |
Get data list by search parameter.
|
![]() | GetAll(String, SortDirections, String, Operators, Object, Records) |
Get data list with all parameters.
|
![]() | GetByID |
Gives one data item by ID
|
![]() | GetByName |
Data item search by field Name
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetList |
Gives raw data list and is basis for all data processing (example for method GetAll)
|
![]() ![]() ![]() | GetProperty |
Gives a property from object properties
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Insert(ListDataItemClass) |
Insert list of data items
|
![]() | Insert(DataItemClass) |
Insert data item
|
![]() | InsertOrUpdateByName |
If not exists data record by Name then call method Insert.
If exists data record unique then call method Update.
If more data records then trigger an exception DataFoundMoreAsOne
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | SetDB |
Sets database
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Update(ListDataItemClass) |
Data list update
|
![]() | Update(DataItemClass) |
Data item update
|
![]() | Validate |
Validate data item
|
Name | Description | |
---|---|---|
![]() | DBActionAfter |
Triggered by methods Get*, Insert, Update and Delete
|
![]() | DBActionBefore |
Triggered by methods Get*, Insert, Update and Delete
|
![]() | DBActionDone |
Triggered by methods Get*, Insert, Update and Delete
|
![]() | DBActionPermission |
Triggered by methods Get*, Insert, Update and Delete
|
![]() ![]() | DBActionPrepare |
Triggered by methods Get*, Insert, Update and Delete
|
![]() | Validating |
Triggered by method Validate
|
Initialize which data source in method SetDB and method GetList
Type parameter DataItemClass must based on type IDataStandard
//* declaration SOWI Data Connector object for XML file (based on SOWIData.Database.Connector)* SOWIDataConnectorXML lSOWIDataConnectorXML = null; //* declaration and initialize the Connection String Builder * SqlConnectionStringBuilder lConnectionStringBuilder = new SqlConnectionStringBuilder(); //* puts XML provider to property DataSource * lConnectionStringBuilder.DataSource = SOWIData.Providers.XML.ToString(); //* puts XML file name to property InitialCatalog * lConnectionStringBuilder.InitialCatalog = "XMLFileName.xml"; //* initialize user * string lUserName = "TestCaseUser"; //* create SOWI Data Connector for XML file * lSOWIDataConnectorXML = new SOWIDataConnectorXML(lConnectionStringBuilder.ConnectionString.ToString(), lUserName);