上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页
摘要: 一、关掉“多租户”的设置(我现在用不到,如果需要到时候再开启) 在Core的 ******CoreModule.cs里,把MultiTenancyEnabled里的值改为false就可以了。 二、建立实体 public class SupplierCompanyInfo : FullAuditedE 阅读全文
posted @ 2020-06-03 10:20 星星c# 阅读(286) 评论(0) 推荐(0)
摘要: 一、引用NuGetGet里的npoi,如下图: 二、打开文件 Stream stream = File.OpenRead(@"C:\Test\\11.docx"); XWPFDocument doc = new XWPFDocument(stream); 三、获取word里面所有的表格 var al 阅读全文
posted @ 2020-06-03 10:12 星星c# 阅读(2585) 评论(1) 推荐(0)
摘要: 提前下载好安装包: http://get.enterprisedb.com/postgresql/postgresql-12.2-4-windows-x64-binaries.zip 一、确定安装目录 提前创建如下的文件夹 主目录:D:\Program Files\PostgresqlData目录: 阅读全文
posted @ 2020-05-14 14:42 星星c# 阅读(282) 评论(0) 推荐(0)
摘要: 1、修改Startup,添加如下代码: app.UseMvc(routes => { routes.MapAreaRoute( name: "PreviewFile", areaName: "PreviewFile", template: "PreviewFile/{controller=Home} 阅读全文
posted @ 2020-05-09 21:45 星星c# 阅读(925) 评论(0) 推荐(0)
摘要: { field: "SCORE", title: "分数", attributes: { style: "text-align:center" }, headerAttributes: { style: "text-align:center" }, template: GetScoreTemplat 阅读全文
posted @ 2020-04-20 15:52 星星c# 阅读(233) 评论(0) 推荐(0)
摘要: public static string String2Unicode(string source) { byte[] bytes = Encoding.Unicode.GetBytes(source); StringBuilder stringBuilder = new StringBuilder 阅读全文
posted @ 2020-03-30 20:08 星星c# 阅读(748) 评论(0) 推荐(0)
摘要: npm config set PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors yarn config set registry https://registry.npm.taobao.org 阅读全文
posted @ 2020-03-13 09:41 星星c# 阅读(895) 评论(0) 推荐(0)
摘要: 一、下载 1、打开https://aspnetboilerplate.com/Templates 界面如下: 2、选择ASP.NET Core,并且选择 Multi Page Web Application,填写项目名称为:Purchase,并把包含用户管理模块的复选框勾上, 如下图: 点击“Cre 阅读全文
posted @ 2020-03-07 18:16 星星c# 阅读(366) 评论(0) 推荐(0)
摘要: 一、根据账号取出来当前用户的实体 var userMgr = scope.ServiceProvider.GetRequiredService<UserManager<ApplicationUser>>(); var userModel = userMgr.FindByNameAsync(accou 阅读全文
posted @ 2020-02-15 21:00 星星c# 阅读(989) 评论(0) 推荐(0)
摘要: 一、添加用户 public ReturnResult Add(JObject jo) { var returnResult = new ReturnResult(); string userId = jo.GetValue("Id").ToString(); string account = jo. 阅读全文
posted @ 2020-02-15 20:33 星星c# 阅读(1248) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页