Ejemplo n.º 1
0
        public static Pricesheetinqcriteria BuildPricesheetinqcriteriaFromRow(DataRow row)
        {
            Pricesheetinqcriteria entity = new Pricesheetinqcriteria();

            entity.prod    = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse    = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.pdrecno = row.IsNull("pdrecno") ? 0 : row.Field <int>("pdrecno");
            return(entity);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPricesheetinqcriteria(ref DataRow row, Pricesheetinqcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("pdrecno", entity.pdrecno);
 }