protected void CreateEntity(ISession session, string name, Owner owner) { var t = new Entity { Name = name, Owner = owner, }; session.Save(t); }
protected Expression<Func<Entity, object[]>> SelectExpression(Owner owner) { return e => new object[] { e.Name, e.Owner == owner }; }
protected Owner CreateOwner(ISession session, string name) { var t = new Owner { Name = name }; session.Save(t); return t; }
protected Expression<Func<Entity, bool>> WhereExpression(Owner owner) { return e => e.Owner == owner; }