Example #1
0
 public virtual void AddBlogRef(BlogRef blogRef)
 {
     using (ISession session = sessManager.OpenSession())
     {
         session.Save(blogRef);
     }
 }
Example #2
0
 public virtual void AddBlogRef(BlogRef blogRef)
 {
     using (ISession session = sessManager.OpenSession())
     {
         session.Save(blogRef);
     }
 }
Example #3
0
 public virtual void AddBlogRefStateless(BlogRef blogRef)
 {
     using (IStatelessSession session = sessManager.OpenStatelessSession())
     {
         session.Insert(blogRef);
     }
 }
		public virtual void DoBlogRefOperation(Blog blog)
		{
			BlogRef blogRef = new BlogRef();
			blogRef.ParentBlog = blog;
			blogRef.Title = "title";
			firstDao.AddBlogRef(blogRef);

			//constraint exception
			firstDao.Delete("Blog1");
		}
Example #5
0
        public virtual void DoBlogRefOperation(Blog blog)
        {
            var blogRef = new BlogRef();

            blogRef.ParentBlog = blog;
            blogRef.Title      = "title";
            firstDao.AddBlogRef(blogRef);

            //constraint exception
            firstDao.Delete("Blog1");
        }
Example #6
0
		public virtual void AddBlogRefStateless(BlogRef blogRef)
		{
			using (IStatelessSession session = sessManager.OpenStatelessSession())
			{
				session.Insert(blogRef);
			}
		}