Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceantransactionssingle(ref DataRow row, Iceantransactionssingle entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("allowmassupdatefl", entity.allowmassupdatefl);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Iceantransactionssingle BuildIceantransactionssingleFromRow(DataRow row)
        {
            Iceantransactionssingle entity = new Iceantransactionssingle();

            entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.allowmassupdatefl = row.Field <bool>("allowmassupdatefl");
            entity.userfield         = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }