DataSourceExtensionsRead Method |
Reads multiple (up to rowCount) rows from the specified query, matching the filter
Namespace:
Aloe.SystemFrameworks.Domain.DataAccess
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static IBuffer Read(
this IDataSource dataSource,
DataAccessQuery query,
string transactionName = null
)
<ExtensionAttribute>
Public Shared Function Read (
dataSource As IDataSource,
query As DataAccessQuery,
Optional transactionName As String = Nothing
) As IBuffer
public:
[ExtensionAttribute]
static IBuffer^ Read(
IDataSource^ dataSource,
DataAccessQuery^ query,
String^ transactionName = nullptr
)
[<ExtensionAttribute>]
static member Read :
dataSource : IDataSource *
query : DataAccessQuery *
?transactionName : string
(* Defaults:
let _transactionName = defaultArg transactionName null
*)
-> IBuffer
Parameters
- dataSource
- Type: Aloe.SystemFrameworks.Domain.DataAccessIDataSource
The data source on which to effect the command - query
- Type: Aloe.SystemFrameworks.Domain.DataAccessDataAccessQuery
The data access query from which to read - transactionName (Optional)
- Type: SystemString
The name of the transaction, for logging purposes.
Return Value
Type:
IBufferDataBuffer, containing all the table(s) read
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).
Remarks
Some queries return multiple tables, that is why the result is DataBuffer
See Also