DbMaintenanceViewModel<(Of <(<'TEntity>)>)>..::..GetLookupCommand Method
Creates and returns a LookupCommand. The primaryKeyValue argument must be passed in if this view model does not set the KeyAutoFillValue property.
Namespace:
RingSoft.DbMaintenanceAssembly: RingSoft.DbMaintenance (in RingSoft.DbMaintenance.dll)
Syntax
protected LookupCommand GetLookupCommand( LookupCommands command, PrimaryKeyValue primaryKeyValue, Object addViewParameter )
Protected Function GetLookupCommand ( _ command As LookupCommands, _ primaryKeyValue As PrimaryKeyValue, _ addViewParameter As Object _ ) As LookupCommand
protected: LookupCommand^ GetLookupCommand( LookupCommands^ command, PrimaryKeyValue^ primaryKeyValue, Object^ addViewParameter )
Parameters
- command
- Type: RingSoft.DbLookup.Lookup..::..LookupCommands
The command type.
- primaryKeyValue
- Type: RingSoft.DbLookup..::..PrimaryKeyValue
The primary key value.
- addViewParameter
- Type: Object
The add-on-the-fly input parameter.
Return Value
LookupCommand.Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | command - null |
ArgumentException | You must pass in a primary key value if KeyAutoFillValue is null. |