Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGletainitiatepd(ref DataRow row, Gletainitiatepd entity)
 {
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("currproc", entity.currproc);
     row.SetField("claimno", entity.claimno);
     row.SetField("writeOffAmt", entity.writeOffAmt);
     row.SetField("balanceType", entity.balanceType);
     row.SetField("divno", entity.divno);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Gletainitiatepd BuildGletainitiatepdFromRow(DataRow row)
        {
            Gletainitiatepd entity = new Gletainitiatepd();

            entity.jrnlno      = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.currproc    = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.claimno     = row.IsNull("claimno") ? 0 : row.Field <int>("claimno");
            entity.writeOffAmt = row.IsNull("writeOffAmt") ? decimal.Zero : row.Field <decimal>("writeOffAmt");
            entity.balanceType = row.Field <bool>("balanceType");
            entity.divno       = row.IsNull("divno") ? 0 : row.Field <int>("divno");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }