PersonRead Method

Builds a Person object from a database table row.

Definition

Namespace: Common.Core.Models
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static Person Read(
	DataRow row,
	string addPrefix = ""
)

Parameters

row  DataRow
Database row containing the Person columns.
addPrefix  String  (Optional)
Table column prefix for Address fields if required.

Return Value

Person
Person object containing the database values.

Remarks

This method assumes that the table column names are the same as the property names.

See Also