PersonUpdateSQL 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,
IPerson obj,
IPerson mod,
string addPrefix = ""
)
- row DataRow
- Database row containing the current Person data.
- obj IPerson
- IPerson object containing the original values.
- mod IPerson
- IPerson 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.