public void SaveEntry(Entry entry) { using (var transaction = Session.BeginTransaction(IsolationLevel.Serializable)) { Session.SaveOrUpdate(entry); transaction.Commit(); } }
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; }