Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPderclaimtotalresults(ref DataRow row, Pderclaimtotalresults entity)
 {
     row.SetField("proofAmt", entity.proofAmt);
     row.SetField("totVendRecon", entity.totVendRecon);
     row.SetField("totLineRecon", entity.totLineRecon);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Pderclaimtotalresults BuildPderclaimtotalresultsFromRow(DataRow row)
        {
            Pderclaimtotalresults entity = new Pderclaimtotalresults();

            entity.proofAmt     = row.IsNull("proofAmt") ? decimal.Zero : row.Field <decimal>("proofAmt");
            entity.totVendRecon = row.IsNull("totVendRecon") ? decimal.Zero : row.Field <decimal>("totVendRecon");
            entity.totLineRecon = row.IsNull("totLineRecon") ? decimal.Zero : row.Field <decimal>("totLineRecon");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }