1 [Serializable] 2 public class Product 3 { 4 public Product() 5 { 6 7 8 } 9 10 public Product(string id,string pname,int num,double price) 11 { 12 th ...
分类:
其他好文 时间:
2020-02-15 09:53:38
阅读次数:
69
EF第一次查询很慢,大约在2s左右,第二次及之后就变快了。 EFCore第一次查询大约也有1s左右。 而用ado.net第一次查询也就只有100ms。 测试结果(EF和ado.net): 测试代码如下: using System; using System.Collections.Generic; ...
分类:
其他好文 时间:
2020-02-14 22:40:03
阅读次数:
178
#!/bin/sh tomcat_id=$(ps -ef | grep tomcat | grep -v "grep" | awk '{print $2}') for tomcatid in $tomcat_id do kill -9 ${tomcatid} echo "killed tomcat_ ...
分类:
系统相关 时间:
2020-02-14 18:17:21
阅读次数:
130
E题: 题意: 给定长度为N的序列A,求一个序列B,使得AiBi=AjBj(1<i<j<=n),且所有在序列B里的数最小,求这个最小值。 思路: 其实就是让所有AiBi都相等,所以就让AiBi=lcm(A1,A2,...,AN)就行了。 所以可以所有Ai出现过的质因数,把它们乘起来就是lcm(A1, ...
分类:
其他好文 时间:
2020-02-14 16:37:21
阅读次数:
91
原文:https://blog.csdn.net/easyboot/article/details/102608498 using System; using System.Data; using System.Configuration; using System.Linq; using Syst ...
分类:
数据库 时间:
2020-02-14 14:42:10
阅读次数:
299
1 //导入微软提供的命名空间,以便使用 2 using System; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 ...
一、设置索引 protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity<Blog>().HasIndex(b => b.Url); //Url字段索引 modelBuilder.E ...
分类:
数据库 时间:
2020-02-14 01:20:08
阅读次数:
125
查看 Nodejs 占用的端口: ps -ef | grep 进程名字 linux通过端口查看进程:netstat -nap | grep 端口号 ...
分类:
Web程序 时间:
2020-02-14 01:04:26
阅读次数:
262
在开发中,我们想在调试中查看EF Core执行的sql语句,可以使用SQL Studio Manager Tools工具,另一种方式是使用EF Core提供的日志。 在ASP.NET Core使用Entity Framework Core的日志的步骤: 1. 设置启动方式 在launchSettin ...
分类:
Web程序 时间:
2020-02-14 00:58:11
阅读次数:
98
application 应用层 MVC和core的中专 EF 基础设施层 mig 迁移层 webcore 1.多租户=》szjs.Core szjsConsts 里面 public const bool MultiTenancyEnabled = true; 生产迁移文件 add-migration ...
分类:
其他好文 时间:
2020-02-13 23:05:54
阅读次数:
97