CompanyRead Method

Builds a Company 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 Company Read(
	DataRow row,
	string addPrefix = ""
)

Parameters

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

Return Value

Company
Company object containing the database values.

Remarks

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

See Also