Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }