コード例 #1
0
 /// <AddRssFeed>
 /// Add new Rss feeds
 /// </summary>
 /// <param name="rss">Set Values in a RssFeeds Class Property and Pass the Object of RssFeeds Class.(Domein.RssFeeds)</param>
 public void AddRssFeed(RssFeeds rss)
 {
     //Creates a database connection and opens up a session
     using (NHibernate.ISession session = SessionFactory.GetNewSession())
     {
         //After Session creation, start Transaction.
         using (NHibernate.ITransaction transaction = session.BeginTransaction())
         {
             //Proceed action, to save new Rss feed.
             session.Save(rss);
             transaction.Commit();
         }//End Transaction
     }//End Session
 }
コード例 #2
0
 /// <AddRssFeed>
 /// Add new Rss feeds
 /// </summary>
 /// <param name="rss">Set Values in a RssFeeds Class Property and Pass the Object of RssFeeds Class.(Domein.RssFeeds)</param>
 public void AddRssFeed(Domain.Socioboard.Domain.RssFeeds rss)
 {
     //Creates a database connection and opens up a session
     using (NHibernate.ISession session = SessionFactory.GetNewSession())
     {
         //After Session creation, start Transaction.
         using (NHibernate.ITransaction transaction = session.BeginTransaction())
         {
             //Proceed action, to save new Rss feed.
             session.Save(rss);
             transaction.Commit();
         } //End Transaction
     }     //End Session
 }
コード例 #3
0
 public void UpdateRss(RssFeeds rss)
 {
     throw new NotImplementedException();
 }