コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlopenjournalcriteria(ref DataRow row, Glopenjournalcriteria entity)
 {
     row.SetField("currproc", entity.currproc);
     row.SetField("period", entity.period);
     row.SetField("postdt", entity.postdt);
     row.SetField("proofcr", entity.proofcr);
     row.SetField("proofdr", entity.proofdr);
     row.SetField("system", entity.system);
     row.SetField("prfchk", entity.prfchk);
     row.SetField("warningok", entity.warningok);
     row.SetField("jrnlno", entity.jrnlno);
 }
コード例 #2
0
        public static Glopenjournalcriteria BuildGlopenjournalcriteriaFromRow(DataRow row)
        {
            Glopenjournalcriteria entity = new Glopenjournalcriteria();

            entity.currproc  = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.period    = row.IsNull("period") ? 0 : row.Field <int>("period");
            entity.postdt    = row.Field <DateTime?>("postdt");
            entity.proofcr   = row.IsNull("proofcr") ? decimal.Zero : row.Field <decimal>("proofcr");
            entity.proofdr   = row.IsNull("proofdr") ? decimal.Zero : row.Field <decimal>("proofdr");
            entity.system    = row.IsNull("system") ? string.Empty : row.Field <string>("system");
            entity.prfchk    = row.IsNull("prfchk") ? decimal.Zero : row.Field <decimal>("prfchk");
            entity.warningok = row.Field <bool>("warningok");
            entity.jrnlno    = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            return(entity);
        }