C# Class Argentini.Halide.DatabaseRow

Subclass which contains all of an individual row's columns as individual DatabaseItem objects
ファイルを表示 Open project: argentini/Halide Class Usage Examples

Public Methods

Method Description
AddColumn ( String colName, String colValue ) : System.Boolean

Add a column to the data set in memory. This is useful when stored procedures used for saving data require optional parameters.

The new column will act just like a real SQL data column, and you may want to add a faux SQL data type to its properties, as well as any other properties, so that you can manipulate it properly.

DatabaseRow ( ) : System

Initialize the DatabaseRow with an empty row.

DatabaseRow ( H3Reader reader ) : System

Initialize the DatabaseRow with a single row form a Halide.H3Reader object.

DeleteColumn ( String colName ) : System.Boolean

Delete a column from the data set in memory.

DeleteColumn ( int index ) : System.Boolean

Delete a column from the data set in memory.

this ( String columnName ) : DatabaseItem

Return the DatabaseItem of the specified name. If you try to retrieve an item that does not exist, one is created automatically.

this ( int ColumnIndex ) : DatabaseItem

Return the DatabaseItem at the specified index, or set the value.

Method Details

AddColumn() public method

Add a column to the data set in memory. This is useful when stored procedures used for saving data require optional parameters.

The new column will act just like a real SQL data column, and you may want to add a faux SQL data type to its properties, as well as any other properties, so that you can manipulate it properly.

public AddColumn ( String colName, String colValue ) : System.Boolean
colName String Name of the new column.
colValue String Value of the new column.
return System.Boolean

DatabaseRow() public method

Initialize the DatabaseRow with an empty row.
public DatabaseRow ( ) : System
return System

DatabaseRow() public method

Initialize the DatabaseRow with a single row form a Halide.H3Reader object.
public DatabaseRow ( H3Reader reader ) : System
reader H3Reader An open Halide.H3Reader object that can be used to read a row from a database.
return System

DeleteColumn() public method

Delete a column from the data set in memory.
public DeleteColumn ( String colName ) : System.Boolean
colName String Name of the column to delete.
return System.Boolean

DeleteColumn() public method

Delete a column from the data set in memory.
public DeleteColumn ( int index ) : System.Boolean
index int Index number of the column to delete.
return System.Boolean

this() public method

Return the DatabaseItem of the specified name. If you try to retrieve an item that does not exist, one is created automatically.
public this ( String columnName ) : DatabaseItem
columnName String The column name of the DatabaseItem.
return DatabaseItem

this() public method

Return the DatabaseItem at the specified index, or set the value.
public this ( int ColumnIndex ) : DatabaseItem
ColumnIndex int The index number of the column from which to retrieve the DatabaseItem.
return DatabaseItem