AddressUpdateAddress 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 bool UpdateAddress(
	Address obj,
	Address mod,
	Address cur,
	IList<string> list,
	string prefix = ""
)

Parameters

obj  Address
Address object containing the original values.
mod  Address
Address object containing the modified values.
cur  Address
Address object containing the current values.
list  IListString
List of SQL script changes.
prefix  String  (Optional)
Table column name prefix for Address fields (if required).

Return Value

Boolean
if the current object is equal to the object containing the original values; otherwise, .

Remarks

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

See Also