Example #1
0
        public async Task UpdateForumThread(ForumThreadModel forumThread)
        {
            forumThread.UpdateTimestamps(false);

            using (var ct = GetConnection(DatabaseType.Forum, false))
            {
                await ct.DbConnection.ExecuteAsync(ReadQuery("UpdateForumThread", ct.ProviderName), forumThread, transaction : ct.DbTransaction);
            }
        }
Example #2
0
        public async Task InsertForumThread(ForumThreadModel forumThread, bool importFlag = false)
        {
            forumThread.UpdateGuid();
            forumThread.UpdateTimestamps(true, importFlag);

            using (var ct = GetConnection(DatabaseType.Forum, false))
            {
                await ct.DbConnection.ExecuteAsync(ReadQuery("InsertForumThread", ct.ProviderName), forumThread, transaction : ct.DbTransaction);
            }
        }