Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceandfltoffsetacctresults(ref DataRow row, Iceandfltoffsetacctresults entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("glaccount", entity.glaccount);
     row.SetField("lookupnm", entity.lookupnm);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Iceandfltoffsetacctresults BuildIceandfltoffsetacctresultsFromRow(DataRow row)
        {
            Iceandfltoffsetacctresults entity = new Iceandfltoffsetacctresults();

            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.glaccount = row.IsNull("glaccount") ? string.Empty : row.Field <string>("glaccount");
            entity.lookupnm  = row.IsNull("lookupnm") ? string.Empty : row.Field <string>("lookupnm");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }