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: 10.2.3317.0 , built 2025-03-17 14:55:33 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 methodDatabaseAccessorTInitializes 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(T) Delete a row from 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 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