Skip to content

Commit

Permalink
#3 Tagged AsQueryOver<> extension method as Obsolete due to performan…
Browse files Browse the repository at this point in the history
…ce issues
  • Loading branch information
Lukas Gerbenis committed Oct 8, 2015
1 parent 74aefcf commit 6457909
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public IQueryOver<TEntity, TEntity> AsQueryOver<TEntity>() where TEntity : class
return UnitOfWork.Session.QueryOver<TEntity>().Where(f => !f.IsDeleted);
}

[Obsolete("Has performance issues, use AsQueryOver with alias.")]
public IQueryOver<TEntity, TEntity> AsQueryOver<TEntity>(Expression<Func<TEntity>> alias) where TEntity : class, IEntity
{
if (alias != null)
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 6457909

Please sign in to comment.