Esempio n. 1
0
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            order = session.CreateCriteria(typeof(Order))
                    .Add(Restrictions.Eq("OrderID", 10248)).UniqueResult <Order>();
        }
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            employee = session.CreateCriteria(typeof(Employee))
                       .Add(Restrictions.Eq("EmployeeID", 2)).UniqueResult <Employee>();
        }
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            customer = session.CreateCriteria(typeof(Customer))
                       .Add(Restrictions.Eq("CustomerID", "ERNSH")).UniqueResult <Customer>();
        }
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            category = session.CreateCriteria(typeof(Category))
                       .Add(Restrictions.Eq("CategoryID", 7)).UniqueResult <Category>();
        }
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            shipper = session.CreateCriteria(typeof(Shipper))
                      .Add(Restrictions.Eq("ShipperID", 2)).UniqueResult <Shipper>();
        }
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            territory = session.CreateCriteria(typeof(Territory))
                        .Add(Restrictions.Eq("TerritoryID", "10019")).UniqueResult <Territory>();
        }
Esempio n. 7
0
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            region = session.CreateCriteria(typeof(Region))
                     .Add(Restrictions.Eq("RegionID", 2)).UniqueResult <Region>();
        }
Esempio n. 8
0
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            product = session.CreateCriteria(typeof(Product))
                      .Add(Restrictions.Eq("ProductID", 51))
                      .UniqueResult <Product>();
        }
Esempio n. 9
0
        public void RunTests()
        {
            session     = NHSessionHelper.OpenSession();
            transaction = session.BeginTransaction();

            orderLine = session.CreateCriteria(typeof(Order_Line))
                        .Add(Restrictions.Eq("OrderID", 10250))
                        .Add(Restrictions.Eq("ProductID", 51))
                        .UniqueResult <Order_Line>();
        }