예제 #1
0
        public static Gletioffsetaccts BuildGletioffsetacctsFromRow(DataRow row)
        {
            Gletioffsetaccts entity = new Gletioffsetaccts();

            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.amount    = row.IsNull("amount") ? decimal.Zero : row.Field <decimal>("amount");
            entity.glaccount = row.IsNull("glaccount") ? string.Empty : row.Field <string>("glaccount");
            return(entity);
        }
예제 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGletioffsetaccts(ref DataRow row, Gletioffsetaccts entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("amount", entity.amount);
     row.SetField("glaccount", entity.glaccount);
 }