예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeordersuspendsingle(ref DataRow row, Oeordersuspendsingle entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("suspendorderchecked", entity.suspendorderchecked);
     row.SetField("pickprintchecked", entity.pickprintchecked);
     row.SetField("pickprintenabled", entity.pickprintenabled);
     row.SetField("printerenabled", entity.printerenabled);
     row.SetField("isvalidated", entity.isvalidated);
     row.SetField("processedonce", entity.processedonce);
     row.SetField("whereappfl", entity.whereappfl);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Oeordersuspendsingle BuildOeordersuspendsingleFromRow(DataRow row)
        {
            Oeordersuspendsingle entity = new Oeordersuspendsingle();

            entity.orderno             = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf            = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.suspendorderchecked = row.Field <bool>("suspendorderchecked");
            entity.pickprintchecked    = row.Field <bool>("pickprintchecked");
            entity.pickprintenabled    = row.Field <bool>("pickprintenabled");
            entity.printerenabled      = row.Field <bool>("printerenabled");
            entity.isvalidated         = row.Field <bool>("isvalidated");
            entity.processedonce       = row.Field <bool>("processedonce");
            entity.whereappfl          = row.Field <bool>("whereappfl");
            entity.userfield           = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }