public async Task UpdateArticleSection(ArticleSectionModel articleSection) { articleSection.UpdateTimestamps(false); using (var ct = GetConnection(DatabaseType.PEngine, true)) { await ct.DbConnection.ExecuteAsync(ReadQuery("UpdateArticleSection", ct.ProviderName), articleSection, transaction : ct.DbTransaction); } }
public async Task InsertArticleSection(ArticleSectionModel articleSection, bool importFlag = false) { articleSection.UpdateGuid(); articleSection.UpdateTimestamps(true, importFlag); using (var ct = GetConnection(DatabaseType.PEngine, true)) { await ct.DbConnection.ExecuteAsync(ReadQuery("InsertArticleSection", ct.ProviderName), articleSection, transaction : ct.DbTransaction); } }