Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcipfetchroaicriteria(ref DataRow row, Icipfetchroaicriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("roai", entity.roai);
     row.SetField("adddisc", entity.adddisc);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Icipfetchroaicriteria BuildIcipfetchroaicriteriaFromRow(DataRow row)
        {
            Icipfetchroaicriteria entity = new Icipfetchroaicriteria();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.roai      = row.IsNull("roai") ? decimal.Zero : row.Field <decimal>("roai");
            entity.adddisc   = row.IsNull("adddisc") ? decimal.Zero : row.Field <decimal>("adddisc");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }