/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPhysuncountedloccriteria(ref DataRow row, Physuncountedloccriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("phyuncuserfield", entity.phyuncuserfield); row.SetField("userfield", entity.userfield); }
public static Physuncountedloccriteria BuildPhysuncountedloccriteriaFromRow(DataRow row) { Physuncountedloccriteria entity = new Physuncountedloccriteria(); 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.phyuncuserfield = row.IsNull("phyuncuserfield") ? string.Empty : row.Field <string>("phyuncuserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }