Example #1
0
 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>();
     }
 }
Example #2
0
 public Constraint()
     : base(ObjectType1.Constraint)
 {
     Columns = new ConstraintColumns();
     Index = new Index();
 }