摘要:
1 public void DownloadFile(string URL, string filename) 2 { 3 HttpWebRequest req = null; 4 HttpWebResponse rep = null; 5 Stream st = null; 6 Stream so 阅读全文
摘要:
1 public class RequestResponseLoggingMiddleware 2 { 3 private readonly RequestDelegate _next; 4 private RequestResponseLog _logInfo; 5 6 public Reques 阅读全文
摘要:
public string Decrypt() { var base64EncryptedData = ""; string privateKey = @"<RSAKeyValue>....</RSAKeyValue>"; RSACryptoServiceProvider provider = ne 阅读全文
摘要:
1 _context.YourEntity.Attach(model); 2 _context.Entry(model).Property(p=>p.column).IsModified=true; 3 _context.SaveChanges(); 阅读全文
摘要:
SET NOCOUNT ON; INSERT INTO [TableName] ([Column1], [Column2]) VALUES (@value1, @value2); SELECT [Id] FROM [TableName] WHERE @@ROWCOUNT=1 AND [Id]=sco 阅读全文
摘要:
public static void GetListHtmlString(string content, string searchStr, List<string> list) { if (string.IsNullOrEmpty(content) || string.IsNullOrEmpty( 阅读全文
摘要:
--设置简单恢复模式 ALTER DATABASE [DB_Data] SET RECOVERY SIMPLE; GO DBCC SHRINKFILE ([DB_Data_log], 1); GO --恢复为原模式 ALTER DATABASE [DB_Data] SET RECOVERY FULL 阅读全文
摘要:
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 阅读全文
摘要:
<template> <ul> <li v-for="products in productsOnSale" :key="product._id"> {{ product.name }} </li> </ul> </template> <script> export default { data ( 阅读全文
摘要:
不小心提交了一个大文件,推送的时候报错: 解决办法: 先备份有影响的这个大文件,然后执行: 第一步: git rev-list --objects --all | grep 3fd2c09a0ba3859753aa7d964elaabc3f0a1694b 第二步: git filter-branch 阅读全文