Beispiel #1
0
        public IEnumerable <Temp> GetMetaData(string tableName)
        {
            //WCF Data Services does not allow for Complex query where you need to mine linked table data
            //with the same query so I have opted to use a webget sever side and do the query their...
            _context.IgnoreResourceNotFoundException = true;
            _context.MergeOption = MergeOption.NoTracking;
            var query = _context.CreateQuery <Temp>("GetMetaData").AddQueryOption("TableName", "'" + tableName + "'");

            return(query);
        }
Beispiel #2
0
        public IEnumerable <PlantCode> Refresh(string autoIDs)
        {
            _repositoryContext             = new PlantEntities(_rootUri);
            _repositoryContext.MergeOption = MergeOption.AppendOnly;
            _repositoryContext.IgnoreResourceNotFoundException = true;

            var queryResult = _repositoryContext.CreateQuery <PlantCode>("RefreshPlantCode").AddQueryOption("autoIDs", "'" + autoIDs + "'");

            return(queryResult);
        }