public void FixtureSetUp() { using (var session = SessionFactory.OpenSession()) { testedObject = session.CreateCriteria<Index>() .Add(Restrictions.Eq("Name", "PK_test_table")) .UniqueResult<Index>(); expectedTable = session.CreateCriteria<Table>() .Add(Restrictions.Eq("Name", "test_table")) .UniqueResult<Table>(); } }
public Constraint() : base(ObjectType1.Constraint) { Columns = new ConstraintColumns(); Index = new Index(); }