DataSetValuesToModel Method

Passes the values of the DataRow to the model using property attributes.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static void SetValuesToModel(
	DataRow row,
	Object obj,
	List<string> excludeFields = null,
	List<string> excludeProperties = null
)

Parameters

row  DataRow
DataRow from where the values will be obtained.
obj  Object
Model object that contains the values to be transferred.
excludeFields  ListString  (Optional)
List of fields to exclude.
excludeProperties  ListString  (Optional)
List of model properties to exclude.

Remarks

Available properties:

- ColumnAttribute: identifica la columna de datos con la que se mapea

- NotMappedAttribute: indica si la columna no se mapea

- DataTypeAttribute: identifica el tipo de dato

- EnumValueTypeAttribute: determina el tipo de valor utilizado en la propiedad de enumerado

- ExtendedDataFieldsAttribute: indica si la propiedad corresponde a una lista de DataField

See Also