Ejemplo n.º 1
0
 public void Update(Article.Domain.StoreContext.Entities.Article article)
 {
     _context.Connection.Execute("");
 }
Ejemplo n.º 2
0
        public void Save(Article.Domain.StoreContext.Entities.Article article)
        {
            var sqlCommand = $"INSERT INTO [Articles] ([Id],[Title],[CreateDate],[PublishedData],[Site],[AdGroup],[Bids],[Spending],[WinRate],[Impressions],[Clicks],[CTR]) VALUES ('{article.Id}', '{article.Title}', '{DateTime.Now}', '{article.PublishedData}', '{article.Site}', '{article.AdGroup}', {article.Bids}, {article.Spending}, {article.WinRate}, {article.Impressions}, {article.Clicks}, {article.CTR})";

            _context.Connection.Execute(sqlCommand);
        }