コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromZoneinventorycriteria(ref DataRow row, Zoneinventorycriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("wh_zone", entity.whZone);
     row.SetField("zoneinvuserfield", entity.zoneinvuserfield);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Zoneinventorycriteria BuildZoneinventorycriteriaFromRow(DataRow row)
        {
            Zoneinventorycriteria entity = new Zoneinventorycriteria();

            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.whZone           = row.IsNull("wh_zone") ? string.Empty : row.Field <string>("wh_zone");
            entity.zoneinvuserfield = row.IsNull("zoneinvuserfield") ? string.Empty : row.Field <string>("zoneinvuserfield");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }