Esempio n. 1
0
        public static Oecalcordmarginresults BuildOecalcordmarginresultsFromRow(DataRow row)
        {
            Oecalcordmarginresults entity = new Oecalcordmarginresults();

            entity.calcmargin    = row.IsNull("calcmargin") ? decimal.Zero : row.Field <decimal>("calcmargin");
            entity.calcmarginpct = row.IsNull("calcmarginpct") ? decimal.Zero : row.Field <decimal>("calcmarginpct");
            return(entity);
        }
Esempio n. 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOecalcordmarginresults(ref DataRow row, Oecalcordmarginresults entity)
 {
     row.SetField("calcmargin", entity.calcmargin);
     row.SetField("calcmarginpct", entity.calcmarginpct);
 }