摘要: var factory = new ConnectionFactory() { HostName = "localhost", UserName = "guest", Password = "guest", }; using (var connection = factory.CreateConne 阅读全文
posted @ 2019-07-10 15:23 HeroCany 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Z.EntityFramework.Extensions dbcontext.BulkInsert(customers); dbcontext.BulkSaveChanges(); 阅读全文
posted @ 2018-12-04 17:33 HeroCany 阅读(382) 评论(0) 推荐(0) 编辑
摘要: Data Source = myServerAddress;Initial Catalog = myDataBase;User Id = myUsername;Password = myPassword; Server = myServerAddress;Database = myDataBase; 阅读全文
posted @ 2018-12-04 16:23 HeroCany 阅读(116) 评论(0) 推荐(0) 编辑
摘要: log4net 配置 阅读全文
posted @ 2018-12-04 15:56 HeroCany 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 在IIS上发布netcore项目 保证电脑上有.net core sdk或者.net core runtime; 需要安装AspNetCoreModule托管模块:DotNetCore.2.0.5-WindowsHosting.exe https://aka.ms/dotnetcore-2-wind 阅读全文
posted @ 2018-10-16 16:02 HeroCany 阅读(2064) 评论(0) 推荐(0) 编辑
摘要: CentOS7默认数据库是mariadb,配置等用着不习惯,因此决定改成mysql,但是CentOS7的yum源中默认好像是没有mysql的。为了解决这个问题,我们要先下载mysql的repo源。 1.下载mysql的repo源 $ wget http://repo.mysql.com/mysql- 阅读全文
posted @ 2017-12-28 09:53 HeroCany 阅读(104) 评论(0) 推荐(0) 编辑