コード例 #1
0
 public void MoveAccountBlogPost(string ticket, int postid, int targetid)
 {
     using (SnCore.Data.Hibernate.Session.OpenConnection())
     {
         ISession session            = SnCore.Data.Hibernate.Session.Current;
         ManagedSecurityContext sec  = new ManagedSecurityContext(session, ticket);
         ManagedAccountBlogPost post = new ManagedAccountBlogPost(session, postid);
         post.Move(sec, targetid);
         SnCore.Data.Hibernate.Session.Flush();
     }
 }
コード例 #2
0
ファイル: WebBlogService.cs プロジェクト: dblock/sncore
 public void MoveAccountBlogPost(string ticket, int postid, int targetid)
 {
     using (SnCore.Data.Hibernate.Session.OpenConnection())
     {
         ISession session = SnCore.Data.Hibernate.Session.Current;
         ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket);
         ManagedAccountBlogPost post = new ManagedAccountBlogPost(session, postid);
         post.Move(sec, targetid);
         SnCore.Data.Hibernate.Session.Flush();
     }
 }