Ejemplo n.º 1
0
        public async Task UpdateForum(ForumModel forum)
        {
            forum.UpdateTimestamps(false);

            using (var ct = GetConnection(DatabaseType.Forum, false))
            {
                await ct.DbConnection.ExecuteAsync(ReadQuery("UpdateForum", ct.ProviderName), forum, transaction : ct.DbTransaction);
            }
        }
Ejemplo n.º 2
0
        public async Task InsertForum(ForumModel forum, bool importFlag = false)
        {
            forum.UpdateGuid();
            forum.UpdateTimestamps(true, importFlag);

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