public virtual void AddBlogRef(BlogRef blogRef) { using (ISession session = sessManager.OpenSession()) { session.Save(blogRef); } }
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"); }
public virtual void DoBlogRefOperation(Blog blog) { var blogRef = new BlogRef(); blogRef.ParentBlog = blog; blogRef.Title = "title"; firstDao.AddBlogRef(blogRef); //constraint exception firstDao.Delete("Blog1"); }