C# Класс 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.
Наследование: TableGateway
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Count() публичный статический Метод

Get the record count from SmartReference table.
The current state of the connection is closed.
public static Count ( ) : int
Результат int

Get() публичный статический Метод

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.
Результат IInternalState

GetByName() публичный статический Метод

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.
Результат IInternalState

GetByType() публичный статический Метод

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.
Результат IEnumerable

New() публичный статический Метод

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.
Результат IInternalState

Remove() публичный статический Метод

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.
Результат bool

Save() публичный статический Метод

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.
Результат bool

Search() публичный статический Метод

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
Результат IEnumerable