예제 #1
0
        /// <inheritdoc />
        public IQueryable <object> GetAll(string connectorName, string viewName, ILoggingService loggingService = null)
        {
            loggingService?.AddViewToLogger(connectorName, viewName);
            IOperationResource resource = ResourceFactory.GetResource(connectorName, OperationType.read, viewName);

            return(resource.GetViewRecords());
        }
예제 #2
0
        /// <inheritdoc />
        public (IQueryable <object> list, int recordLimit) GetAllAndRecordLimit(string connectorName, string viewName, ILoggingService loggingService = null)
        {
            loggingService?.AddViewToLogger(connectorName, viewName);
            IOperationResource resource = ResourceFactory.GetResource(connectorName, OperationType.read, viewName);

            return(resource.GetViewRecords(), resource.Connector.RecordLimit);
        }