/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromResendinitsearch(ref DataRow row, Resendinitsearch entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("fromdate", entity.fromdate); row.SetField("todate", entity.todate); row.SetField("fromtime", entity.fromtime); row.SetField("totime", entity.totime); row.SetField("resendinitsearchuserfield", entity.resendinitsearchuserfield); row.SetField("userfield", entity.userfield); }
public static Resendinitsearch BuildResendinitsearchFromRow(DataRow row) { Resendinitsearch entity = new Resendinitsearch(); entity.coNum = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num"); entity.whNum = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num"); entity.fromdate = row.Field <DateTime?>("fromdate"); entity.todate = row.Field <DateTime?>("todate"); entity.fromtime = row.IsNull("fromtime") ? string.Empty : row.Field <string>("fromtime"); entity.totime = row.IsNull("totime") ? string.Empty : row.Field <string>("totime"); entity.resendinitsearchuserfield = row.IsNull("resendinitsearchuserfield") ? string.Empty : row.Field <string>("resendinitsearchuserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }