/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSastchistorycriteria(ref DataRow row, Sastchistorycriteria entity) { row.SetField("currencyty", entity.currencyty); row.SetField("changety", entity.changety); row.SetField("recordcountlimit", entity.recordcountlimit); row.SetField("userfield", entity.userfield); }
public static Sastchistorycriteria BuildSastchistorycriteriaFromRow(DataRow row) { Sastchistorycriteria entity = new Sastchistorycriteria(); entity.currencyty = row.IsNull("currencyty") ? string.Empty : row.Field <string>("currencyty"); entity.changety = row.IsNull("changety") ? string.Empty : row.Field <string>("changety"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }