Skip to content

jeffreyabecker/DetachedQueryable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#DetachedQueryable A set of libraries to make linq using programs easier to test.

##Basic Usage

  var query = DetachedQuery.Of<Cat>();
  query = query.Where(c=>c.Mother.Name == "Linda");
  if(sexRestriction != null)
  {
    query = query.Where(c=>c.Sex == sexRestriction.Value);
  }
  
  var kittens = DetachedQuery.Attach(query, myQueryableFactory).ToList();

NHibernate

  var query = BuildQuery();
  var results = session.Attach(query).ToList();

EntityFramework 6

  var query = BuildQuery();
  var results = dbContext.Attach(query).ToList();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages