摘要: 1 _context.YourEntity.Attach(model); 2 _context.Entry(model).Property(p=>p.column).IsModified=true; 3 _context.SaveChanges(); 阅读全文
posted @ 2024-06-21 11:29 Chanwah 阅读(1) 评论(0) 推荐(0) 编辑
摘要: SET NOCOUNT ON; INSERT INTO [TableName] ([Column1], [Column2]) VALUES (@value1, @value2); SELECT [Id] FROM [TableName] WHERE @@ROWCOUNT=1 AND [Id]=sco 阅读全文
posted @ 2024-06-21 10:10 Chanwah 阅读(1) 评论(0) 推荐(0) 编辑