Click or drag to resize

DatabaseAccessorT Class

Generic accessor for the database, which opens a new connection for each call and closes it immediately when returning.
Inheritance Hierarchy
SystemObject
  LynceeTec.EucalyptusDatabaseAccessorT

Namespace:  LynceeTec.Eucalyptus
Assembly:  LynceeTec.Eucalyptus (in LynceeTec.Eucalyptus.dll) Version: 9.0.26418.0 , built 2021-10-22 08:45:15 UTC
Syntax
public class DatabaseAccessor<T>
where T : class, ILynceeDataSet

Type Parameters

T
A database table type, implementing ILynceeDataSet

The DatabaseAccessorT type exposes the following members.

Constructors
  NameDescription
Public methodDatabaseAccessorT
Initializes a new instance of the DatabaseAccessorT class
Top
Methods
  NameDescription
Public methodAddRow
Add a row to the specific table (changes are saved at once).
Public methodDeleteRow(Int32)
Delete a row from the specific table (changes are saved at once).
Public methodDeleteRow(Int64)
Delete a row from the specific table (changes are saved at once).
Public methodDeleteRow(T)
Delete a row from the specific table (changes are saved at once).
Public methodDuplicateRow(Int32, TupleString, Object)
Duplicates the row with a specific primary key from a table
Public methodDuplicateRow(Int64, TupleString, Object)
Duplicates the row with a specific primary key from a table
Public methodEditRow
Edit a row from a specific table (changes are saved at once).
Public methodGetAllRows
Gets all the rows from a table
Public methodCode exampleGetAllRows(String)
Gets all the rows from a table
Public methodCode exampleGetAllRowsTParam(ExpressionFuncT, TParam)
Gets all the rows from a table, including a related object
Public methodCode exampleGetFilteredRows(FuncT, Boolean)
Get all rows corresponding to a filter parameter
Public methodCode exampleGetFilteredRows(FuncT, Boolean, String)
Get all rows corresponding to a filter parameter, including several related objects
Public methodCode exampleGetFilteredRowsTParam(FuncT, Boolean, ExpressionFuncT, TParam)
Get all rows corresponding to a filter parameter, including a related object
Public methodGetRow(Int32)
Gets the row with a specific primary key from a table
Public methodGetRow(Int64)
Gets the row with a specific primary key from a table
Public methodCode exampleGetRowIndex
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the table.
Top
See Also