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
Afficher le fichier Open project: NLADP/ADF

Méthodes publiques

Méthode 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 méthode

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

Get() public static méthode

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.
Résultat IInternalState

GetByName() public static méthode

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.
Résultat IInternalState

GetByType() public static méthode

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.
Résultat IEnumerable

New() public static méthode

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.
Résultat IInternalState

Remove() public static méthode

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.
Résultat bool

Save() public static méthode

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.
Résultat bool

Search() public static méthode

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
Résultat IEnumerable