private void LogItemEvent(GuildBankLogEntryType type, Character actor, ItemRecord record, int amount, GuildBankTab intoTab) { var entry = new GuildBankLogEntry(Bank.Guild.Id) { Type = type, Actor = actor, BankLog = this, DestinationTab = intoTab, ItemEntryId = (int)record.EntryId, ItemStackCount = (int)amount, Created = DateTime.Now }; lock (moneyLogEntries) { moneyLogEntries.Insert(entry); } }
private static void OnEntryDeleted(GuildBankLogEntry obj) { RealmWorldDBMgr.DatabaseProvider.Delete(obj); }
} // end method private void LogMoneyEvent(GuildBankLogEntryType type, Character actor, uint money) { var entry = new GuildBankLogEntry(Bank.Guild.Id) { Type = type, Actor = actor, BankLog = this, Money = (int)money, Created = DateTime.Now }; RealmWorldDBMgr.DatabaseProvider.SaveOrUpdate(entry); lock (itemLogEntries) { itemLogEntries.Insert(entry); } }