Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlifdetailhistcriteria(ref DataRow row, Glifdetailhistcriteria entity)
 {
     row.SetField("cdesign", entity.cdesign);
     row.SetField("creportnm", entity.creportnm);
     row.SetField("cprtline", entity.cprtline);
     row.SetField("iseqno", entity.iseqno);
     row.SetField("icolumnno", entity.icolumnno);
     row.SetField("icurryr", entity.icurryr);
     row.SetField("iperiod", entity.iperiod);
     row.SetField("icyear", entity.icyear);
     row.SetField("iperfisc", entity.iperfisc);
     row.SetField("cacct", entity.cacct);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Glifdetailhistcriteria BuildGlifdetailhistcriteriaFromRow(DataRow row)
        {
            Glifdetailhistcriteria entity = new Glifdetailhistcriteria();

            entity.cdesign   = row.IsNull("cdesign") ? string.Empty : row.Field <string>("cdesign");
            entity.creportnm = row.IsNull("creportnm") ? string.Empty : row.Field <string>("creportnm");
            entity.cprtline  = row.IsNull("cprtline") ? string.Empty : row.Field <string>("cprtline");
            entity.iseqno    = row.IsNull("iseqno") ? 0 : row.Field <int>("iseqno");
            entity.icolumnno = row.IsNull("icolumnno") ? 0 : row.Field <int>("icolumnno");
            entity.icurryr   = row.IsNull("icurryr") ? 0 : row.Field <int>("icurryr");
            entity.iperiod   = row.IsNull("iperiod") ? 0 : row.Field <int>("iperiod");
            entity.icyear    = row.IsNull("icyear") ? 0 : row.Field <int>("icyear");
            entity.iperfisc  = row.IsNull("iperfisc") ? 0 : row.Field <int>("iperfisc");
            entity.cacct     = row.IsNull("cacct") ? string.Empty : row.Field <string>("cacct");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }