コード例 #1
0
        public void CoreDaoTest()
        {
            FluentNHibernateHelper.Connect();
            CoreDao <Product> dao = new CoreDao <Product>(new SessionProviderFNH());

            dao.Put(new Product {
                Name = "PS2", Description = "VideoConsole"
            });
            dao.Put(new Product {
                Name = "PS3", Description = "VideoConsole"
            });
            IList <Product> products = dao.Get();
        }