Click or drag to resize
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: Dapper
Assembly: 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
)

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: DynamicParameters
The DynamicParameters instance
See Also