public void Update(Article.Domain.StoreContext.Entities.Article article) { _context.Connection.Execute(""); }
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); }