/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromInvdiscbuildcounts(ref DataRow row, Invdiscbuildcounts entity) { row.SetField("ABS_num", entity.aBSNum); row.SetField("bin_num", entity.binNum); row.SetField("invdiscbuildcountsuserfield", entity.invdiscbuildcountsuserfield); row.SetField("userfield", entity.userfield); }
public static Invdiscbuildcounts BuildInvdiscbuildcountsFromRow(DataRow row) { Invdiscbuildcounts entity = new Invdiscbuildcounts(); entity.aBSNum = row.IsNull("ABS_num") ? string.Empty : row.Field <string>("ABS_num"); entity.binNum = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num"); entity.invdiscbuildcountsuserfield = row.IsNull("invdiscbuildcountsuserfield") ? string.Empty : row.Field <string>("invdiscbuildcountsuserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }