IBufferTableExtensionsFindOrLoadRow Method |
Searches for the row in the table. If not found it is loaded from the data store.
Namespace:
Aloe.SystemFrameworks.Domain.DataAccess
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static IBufferRow FindOrLoadRow(
this IBufferTable table,
Guid id,
bool includeDeletedRows = false
)
<ExtensionAttribute>
Public Shared Function FindOrLoadRow (
table As IBufferTable,
id As Guid,
Optional includeDeletedRows As Boolean = false
) As IBufferRow
public:
[ExtensionAttribute]
static IBufferRow^ FindOrLoadRow(
IBufferTable^ table,
Guid^ id,
bool includeDeletedRows = false
)
[<ExtensionAttribute>]
static member FindOrLoadRow :
table : IBufferTable *
id : Guid *
?includeDeletedRows : bool
(* Defaults:
let _includeDeletedRows = defaultArg includeDeletedRows false
*)
-> IBufferRow
Parameters
- table
- Type: Aloe.SystemFrameworks.Domain.DataAccessIBufferTable
The table. - id
- Type: SystemGuid
The Id of the row. - includeDeletedRows (Optional)
- Type: SystemBoolean
if set to true include deleted rows in the search.
Return Value
Type:
IBufferRow
The found or loaded row. Throws exception if the row was neither found nor successfully loaded.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IBufferTable. 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