Created
          January 28, 2014 19:06 
        
      - 
      
- 
        Save tswann/8674031 to your computer and use it in GitHub Desktop. 
    EF GetAll method with Context tracking turned off
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public IQueryable<T> GetAll<T>() where T : class | |
| { | |
| return _stagingContext.Set<T>().AsNoTracking().AsQueryable(); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment