/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPoebtporiicriteriadetail(ref DataRow row, Poebtporiicriteriadetail entity) { row.SetField("shipmentid", entity.shipmentid); row.SetField("pono", entity.pono); row.SetField("posuf", entity.posuf); row.SetField("userfield", entity.userfield); }
public static Poebtporiicriteriadetail BuildPoebtporiicriteriadetailFromRow(DataRow row) { Poebtporiicriteriadetail entity = new Poebtporiicriteriadetail(); entity.shipmentid = row.IsNull("shipmentid") ? string.Empty : row.Field <string>("shipmentid"); entity.pono = row.IsNull("pono") ? 0 : row.Field <int>("pono"); entity.posuf = row.IsNull("posuf") ? 0 : row.Field <int>("posuf"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }