Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- using Castle.ActiveRecord;
- using NHibernate.Criterion;
- using Orion.Ceasar.Data.DTO;
- using Orion.Ceasar.Data.Entity;
- using Orion.Zeus.Util.ActiveRecord;
- namespace Orion.Ceasar.Data.Repository
- {
- public class ImobImovelRepository: ArRepository<ImobImovel>
- {
- public List<ImobImovel> FindAll(Expression<Func<ImobImovel, bool>> filter)
- {
- using (new SessionScope(FlushAction.Never))
- {
- return ImobImovel.Queryable.Where(filter).ToList();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement