随笔分类 - 工作
摘要:public class BasicUsageModel : PageModel { private readonly IHttpClientFactory _clientFactory; public IEnumerable<GitHubBranch> Branches { get; privat
阅读全文
摘要:内容包括:库、工具、框架、模板引擎、身份认证、数据库、ORM框架、图片处理、文本处理、机器学习、日志、代码分析、教程等。 Github地址:https://github.com/jasonhua95/awesome-dotnet-core ,【awesome-dotnet-core】 其中的翻译有可
阅读全文
摘要:设置 config set slowlog-log-slower-than 10000(微秒) //查看redis时间超过上面设置的阀值的key slowlog len 有几个key slowlog get 获取详情
阅读全文
摘要:static void Main(string[] args) { double totalAmount = 20; int num = 10; double minAmount = 0.01; Random r = new Random(); for (int i = 1; i < num; i+
阅读全文
摘要:更新列名 db.xx.update({}, {$rename : {"StoreId" : "MetaId"}}, false, true) 查询长度 db.getCollection("xx").find({$where:'this.StoreId.length>2'},{Name:0}) 查询总
阅读全文
摘要:Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06 Select CONVERT(varchar(100), GETDA
阅读全文
摘要:记得先引用DLL private FilterInfoCollection videoDevices; private VideoCaptureDevice videoSource; BLL.AWBListBLL alb = new AWBListBLL(); public FormPhoto()
阅读全文
摘要:public void ExportToSvc1(string strFileName) { string strPath = strFileName + ".csv"; StringBuilder strValue = new Strin...
阅读全文
摘要:public void AllDataSetToExcel(DataSet ds) { string saveFileName = ""; bool fileSaved = false; Microsoft.Win32...
阅读全文
摘要:{ "retCode" : "SUCCESS", "msg" : "", "data" : { "List" : [ {"ID " : 1, "description" : "", } ] }} public class Class1 { public string retCode{ get; ...
阅读全文
摘要:引用using System.Drawing.Printing;//代码PrintDocument prtdoc = new PrintDocument(); string strDefaultPrinter = prtdoc.PrinterSettings.PrinterNa...
阅读全文
摘要:什么是委托?首先定义委托的时候用关键字delegate ,说的简单点,委托就是用来传递方法的,就是把一个方法做为参数传递到另一个方法。平常我们用的方法或者函数只能用来传递参数,有时候一个方法可能需要另一个方法的支持,所以我们就可以定义个委托来传递参数,委托和所要传的方法的返回值类型要一致。在Time...
阅读全文