예제 #1
0
 public void SaveEntry(Entry entry)
 {
     using (var transaction = Session.BeginTransaction(IsolationLevel.Serializable))
     {
         Session.SaveOrUpdate(entry);
         transaction.Commit();
     }
 }
예제 #2
0
 private static Entry CreateNewEntry(string name, string title, Wiki wiki)
 {
     var entry = new Entry();
     entry.Wiki = wiki;
     entry.Name = name;
     entry.Title = title;
     entry.Summary = "";
     return entry;
 }