|
TableOperationsTNewRecordFunction Method
|
Gets a delegate for the
NewRecord function for specified type
T.
Namespace: GSF.Data.ModelAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
Syntaxpublic static Func<T> NewRecordFunction()
Public Shared Function NewRecordFunction As Func(Of T)
public:
static Func<T>^ NewRecordFunction()
static member NewRecordFunction : unit -> Func<'T>
GSF.Data.Model.TableOperations.NewRecordFunction = function();
View SourceReturn Value
FuncTDelegate for the
NewRecord function.
Remarks
This method is useful to create a new type
T instance when no data connection
is available, applying any modeled default values as specified by a
DefaultValueAttribute
or
DefaultValueExpressionAttribute on the model properties.
See Also