DataSourceExtensionsGetById Method |
Loads from the data source a table row from the specified table with the specified id.
Namespace:
Aloe.SystemFrameworks.Domain.DataAccess
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static IBufferRow GetById(
this IDataSource dataSource,
string tableName,
Guid id,
string transactionName = null
)
<ExtensionAttribute>
Public Shared Function GetById (
dataSource As IDataSource,
tableName As String,
id As Guid,
Optional transactionName As String = Nothing
) As IBufferRow
public:
[ExtensionAttribute]
static IBufferRow^ GetById(
IDataSource^ dataSource,
String^ tableName,
Guid^ id,
String^ transactionName = nullptr
)
[<ExtensionAttribute>]
static member GetById :
dataSource : IDataSource *
tableName : string *
id : Guid *
?transactionName : string
(* Defaults:
let _transactionName = defaultArg transactionName null
*)
-> IBufferRow
Parameters
- dataSource
- Type: Aloe.SystemFrameworks.Domain.DataAccessIDataSource
The data source from which to read - tableName
- Type: SystemString
The table from which to load - id
- Type: SystemGuid
The id of the row - transactionName (Optional)
- Type: SystemString
The name of the transaction, for logging purposes.
Return Value
Type:
IBufferRowThe row, fetched from the data source.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDataSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also