C# Class Adf.Data.SmartReferences.SmartReferenceGateway

Represents the gateway for database transection of table SmartReference. Provides methods to save, select, remove, update and search data from SmartReference table.
Inheritance: TableGateway
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
Count ( ) : int

Get the record count from SmartReference table.

Get ( ID id, string type ) : IInternalState

Get data from SmartReference table by the matching columns of specified Id and Type.

GetByName ( string name, string type ) : IInternalState

Get data from SmartReference table by the matching columns of specified Name and Type.

GetByType ( string type ) : IEnumerable

Get all data from SmartReference table by the matching column of specified Type and return the array of IInternalState as result.

New ( string type ) : IInternalState

Create a new data row of IInternalState to insert new data into database.

Remove ( IInternalState state ) : bool

Delete the record from SmartReference table.

Save ( IInternalState state ) : bool

Save the data into SmartReference table.

Search ( IEnumerable parameters ) : IEnumerable

Search the records from SmartReference table depending upon the list of parameters.

Method Details

Count() public static method

Get the record count from SmartReference table.
The current state of the connection is closed.
public static Count ( ) : int
return int

Get() public static method

Get data from SmartReference table by the matching columns of specified Id and Type.
The current state of the connection is closed.
public static Get ( ID id, string type ) : IInternalState
id Adf.Core.Identity.ID Match for the Id within SmartReference table.
type string Match for the Type within SmartReference table.
return IInternalState

GetByName() public static method

Get data from SmartReference table by the matching columns of specified Name and Type.
The current state of the connection is closed.
public static GetByName ( string name, string type ) : IInternalState
name string Match for the Name within SmartReference table.
type string Match for the Type within SmartReference table.
return IInternalState

GetByType() public static method

Get all data from SmartReference table by the matching column of specified Type and return the array of IInternalState as result.
The current state of the connection is closed.
public static GetByType ( string type ) : IEnumerable
type string Match for the Type within SmartReference table.
return IEnumerable

New() public static method

Create a new data row of IInternalState to insert new data into database.
The current state of the connection is closed.
public static New ( string type ) : IInternalState
type string Set the specified Type column of SmartReference table.
return IInternalState

Remove() public static method

Delete the record from SmartReference table.
The current state of the connection is closed.
public static Remove ( IInternalState state ) : bool
state IInternalState The data of that needs to be removed.
return bool

Save() public static method

Save the data into SmartReference table.
The current state of the connection is closed.
public static Save ( IInternalState state ) : bool
state IInternalState The data of that needs to be saved.
return bool

Search() public static method

Search the records from SmartReference table depending upon the list of parameters.
The current state of the connection is closed.
public static Search ( IEnumerable parameters ) : IEnumerable
parameters IEnumerable
return IEnumerable