Пример #1
0
        public DataTables <PosEndPoint> New_Query(PosEndPointRequest request)
        {
            SqlParameter[] param =
            {
                new SqlParameter("@Name",      request.Name),
                new SqlParameter("@NameWith",  request.NameWith),
                new SqlParameter("@State",     request.State),
                new SqlParameter("@pageIndex", request.PageIndex),
                new SqlParameter("@pageSize",  request.PageSize),
                new SqlParameter("@ShopId",    request.ShopId)
            };
            StoreProcedure sp = new StoreProcedure("P_getPosEndPoints", param);

            return(_databaseInstance.GetTables <PosEndPoint>(sp));
        }
Пример #2
0
 public QueryObject <PosEndPoint> Query(PosEndPointRequest request)
 {
     return(new QueryObject <PosEndPoint>(_databaseInstance, "PosEndPoint.query", request));
 }