Exemple #1
0
        public static Valinelaborappliedtotals BuildValinelaborappliedtotalsFromRow(DataRow row)
        {
            Valinelaborappliedtotals entity = new Valinelaborappliedtotals();

            entity.controlledactualcost  = row.IsNull("controlledactualcost") ? decimal.Zero : row.Field <decimal>("controlledactualcost");
            entity.controlledappliedcost = row.IsNull("controlledappliedcost") ? decimal.Zero : row.Field <decimal>("controlledappliedcost");
            entity.userfield             = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromValinelaborappliedtotals(ref DataRow row, Valinelaborappliedtotals entity)
 {
     row.SetField("controlledactualcost", entity.controlledactualcost);
     row.SetField("controlledappliedcost", entity.controlledappliedcost);
     row.SetField("userfield", entity.userfield);
 }