CompanyUpdateSQL Method

Builds the SQL script for any value changes.

Definition

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

Parameters

row  DataRow
Database row containing the current Company data.
obj  ICompany
ICompany object containing the original values.
mod  ICompany
ICompany object containing the modified values.
addPrefix  String  (Optional)
Table column name prefix for Address fields (if required).

Return Value

String
An empty string is returned if no changes were found.

Remarks

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

See Also