CompanyUpdateSQL Method
Builds the SQL script for any value changes.
Namespace: Common.Core.ModelsAssembly: Common.Core (in Common.Core.dll) Version: 2.1.5
public static string UpdateSQL(
DataRow row,
ICompany obj,
ICompany mod,
string addPrefix = ""
)
- 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).
StringAn empty string is returned if no changes were found.
This method assumes that the table column names are the same as the property names.