示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlinquiryjournalresults(ref DataRow row, Glinquiryjournalresults entity)
 {
     row.SetField("glno", entity.glno);
     row.SetField("gltitle", entity.gltitle);
     row.SetField("refer", entity.refer);
     row.SetField("debit", entity.debit);
     row.SetField("credit", entity.credit);
     row.SetField("referfl", entity.referfl);
     row.SetField("glet-rowid", entity.gletRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Glinquiryjournalresults BuildGlinquiryjournalresultsFromRow(DataRow row)
        {
            Glinquiryjournalresults entity = new Glinquiryjournalresults();

            entity.glno      = row.IsNull("glno") ? string.Empty : row.Field <string>("glno");
            entity.gltitle   = row.IsNull("gltitle") ? string.Empty : row.Field <string>("gltitle");
            entity.refer     = row.IsNull("refer") ? string.Empty : row.Field <string>("refer");
            entity.debit     = row.IsNull("debit") ? string.Empty : row.Field <string>("debit");
            entity.credit    = row.IsNull("credit") ? string.Empty : row.Field <string>("credit");
            entity.referfl   = row.Field <bool>("referfl");
            entity.gletRowid = row.Field <byte[]>("glet-rowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }