摘要: 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) 编辑
摘要: public static void GetListHtmlString(string content, string searchStr, List<string> list) { if (string.IsNullOrEmpty(content) || string.IsNullOrEmpty( 阅读全文
posted @ 2023-11-24 11:42 Chanwah 阅读(6) 评论(0) 推荐(0) 编辑
摘要: --设置简单恢复模式 ALTER DATABASE [DB_Data] SET RECOVERY SIMPLE; GO DBCC SHRINKFILE ([DB_Data_log], 1); GO --恢复为原模式 ALTER DATABASE [DB_Data] SET RECOVERY FULL 阅读全文
posted @ 2023-10-19 16:56 Chanwah 阅读(1) 评论(0) 推荐(0) 编辑
摘要: SELECT 表名=case when a.colorder=1 then d.name else '' end, --表名=d.name, --表说明=case when a.colorder=1 then isnull(f.value,'') else '' end, --字段序号=a.colo 阅读全文
posted @ 2023-10-19 16:54 Chanwah 阅读(3) 评论(0) 推荐(0) 编辑
摘要: <template> <ul> <li v-for="products in productsOnSale" :key="product._id"> {{ product.name }} </li> </ul> </template> <script> export default { data ( 阅读全文
posted @ 2022-01-14 16:31 Chanwah 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 不小心提交了一个大文件,推送的时候报错: 解决办法: 先备份有影响的这个大文件,然后执行: 第一步: git rev-list --objects --all | grep 3fd2c09a0ba3859753aa7d964elaabc3f0a1694b 第二步: git filter-branch 阅读全文
posted @ 2021-12-26 22:18 Chanwah 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 请移步: https://blog.csdn.net/lcl_xiaowugui/article/details/78746076 阅读全文
posted @ 2021-11-06 23:27 Chanwah 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Microsoft.Office.Interop.Word.Application oWord = new Microsoft.Office.Interop.Word.Application(); oWord.Visible = true; Microsoft.Office.Interop.Word 阅读全文
posted @ 2021-10-30 20:23 Chanwah 阅读(180) 评论(0) 推荐(0) 编辑
摘要: npm install html2canvas //下载包 import html2canvas from "html2canvas" //导入包 <el-button type="primary" @click="clickGeneratePicture">截图</el-button> //按钮 阅读全文
posted @ 2021-10-30 10:27 Chanwah 阅读(843) 评论(0) 推荐(0) 编辑