Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetuptcol(ref DataRow row, Glsfsetuptcol entity)
 {
     row.SetField("columnNo", entity.columnNo);
     row.SetField("PrintArea", entity.printArea);
     row.SetField("StoreArea", entity.storeArea);
     row.SetField("PrintFl", entity.printFl);
     row.SetField("ReverseFl", entity.reverseFl);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Glsfsetuptcol BuildGlsfsetuptcolFromRow(DataRow row)
        {
            Glsfsetuptcol entity = new Glsfsetuptcol();

            entity.columnNo  = row.IsNull("columnNo") ? 0 : row.Field <int>("columnNo");
            entity.printArea = row.IsNull("PrintArea") ? 0 : row.Field <int>("PrintArea");
            entity.storeArea = row.IsNull("StoreArea") ? 0 : row.Field <int>("StoreArea");
            entity.printFl   = row.Field <bool>("PrintFl");
            entity.reverseFl = row.Field <bool>("ReverseFl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }