Row MakeRow Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Factory method that makes an appropriate row type.For performance purposes, this method does not check passed type for Row-derivation and returns null instead if type was invalid

Namespace: NFX.DataAccess.CRUD
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static Row MakeRow(
	Schema schema,
	Type tRow = null
)

Parameters

schema
Type: NFX.DataAccess.CRUD Schema
Schema, which is used for creation of DynamicRows and their derivatives
tRow (Optional)
Type: OnlineSystem Type
A type of row to create, if the type is TypedRow-descending then a parameterless .ctor is called, otherwise a type must have a .ctor that takes schema as a sole argument

Return Value

Type: Row
Row instance or null if wrong type was passed. For performance purposes, this method does not check passed type for Row-derivation and returns null instead if type was invalid
See Also