DynamicParametersOutputT Method |
Allows you to automatically populate a target property/field from output parameters. It actually
creates an InputOutput parameter, so you can still pass data in.
Namespace: DapperAssembly: VirtualRadar.Database (in VirtualRadar.Database.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public DynamicParameters Output<T>(
T target,
Expression<Func<T, Object>> expression,
Nullable<DbType> dbType = null,
Nullable<int> size = null
)
Public Function Output(Of T) (
target As T,
expression As Expression(Of Func(Of T, Object)),
Optional dbType As Nullable(Of DbType) = Nothing,
Optional size As Nullable(Of Integer) = Nothing
) As DynamicParameters
public:
generic<typename T>
DynamicParameters^ Output(
T target,
Expression<Func<T, Object^>^>^ expression,
Nullable<DbType> dbType = nullptr,
Nullable<int> size = nullptr
)
member Output :
target : 'T *
expression : Expression<Func<'T, Object>> *
?dbType : Nullable<DbType> *
?size : Nullable<int>
(* Defaults:
let _dbType = defaultArg dbType null
let _size = defaultArg size null
*)
-> DynamicParameters
Parameters
- target
- Type: T
The object whose property/field you wish to populate. - expression
- Type: System.Linq.ExpressionsExpressionFuncT, Object
A MemberExpression targeting a property/field of the target (or descendant thereof.) - dbType (Optional)
- Type: SystemNullableDbType
- size (Optional)
- Type: SystemNullableInt32
The size to set on the parameter. Defaults to 0, or DbString.DefaultLength in case of strings.
Type Parameters
- T
Return Value
Type:
DynamicParametersThe DynamicParameters instance
See Also