示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupacol(ref DataRow row, Glsfsetupacol 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);
 }
示例#2
0
        public static Glsfsetupacol BuildGlsfsetupacolFromRow(DataRow row)
        {
            Glsfsetupacol entity = new Glsfsetupacol();

            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);
        }