Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupzcol(ref DataRow row, Glsfsetupzcol 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 Glsfsetupzcol BuildGlsfsetupzcolFromRow(DataRow row)
        {
            Glsfsetupzcol entity = new Glsfsetupzcol();

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