예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVasectionlookupresults(ref DataRow row, Vasectionlookupresults entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("vaehnotesfl", entity.vaehnotesfl);
     row.SetField("sctnnotesfl", entity.sctnnotesfl);
     row.SetField("sctntype", entity.sctntype);
     row.SetField("sctncode", entity.sctncode);
     row.SetField("sctndescrip", entity.sctndescrip);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("stagecdword", entity.stagecdword);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("borelfl", entity.borelfl);
     row.SetField("vaes-rowid", entity.vaesRowid.ToByteArray());
 }
예제 #2
0
        public static Vasectionlookupresults BuildVasectionlookupresultsFromRow(DataRow row)
        {
            Vasectionlookupresults entity = new Vasectionlookupresults();

            entity.vano        = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf       = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.seqno       = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.vaehnotesfl = row.IsNull("vaehnotesfl") ? string.Empty : row.Field <string>("vaehnotesfl");
            entity.sctnnotesfl = row.IsNull("sctnnotesfl") ? string.Empty : row.Field <string>("sctnnotesfl");
            entity.sctntype    = row.IsNull("sctntype") ? string.Empty : row.Field <string>("sctntype");
            entity.sctncode    = row.IsNull("sctncode") ? string.Empty : row.Field <string>("sctncode");
            entity.sctndescrip = row.IsNull("sctndescrip") ? string.Empty : row.Field <string>("sctndescrip");
            entity.stagecd     = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.stagecdword = row.IsNull("stagecdword") ? string.Empty : row.Field <string>("stagecdword");
            entity.notesfl     = row.IsNull("notesfl") ? string.Empty : row.Field <string>("notesfl");
            entity.borelfl     = row.Field <bool>("borelfl");
            entity.vaesRowid   = row.Field <byte[]>("vaes-rowid").ToStringEncoded();
            return(entity);
        }