1.建立Entity 建立IEntity的接口 建立实现IEntity接口的抽象类Entity 建立类继承抽象类Entity 2. 数据库放到infrastructure的项目中 3.注册和配置这个dbcontext 1.安装entityFramworkcore.sqlite的包 2.在开发环境下注 ...
分类:
数据库 时间:
2019-11-05 13:47:26
阅读次数:
99
一、基于XML 实体类 package cn.spring.entity; import java.io.Serializable; public class Bank implements Serializable { private String card_code; //卡号 private ...
分类:
编程语言 时间:
2019-11-05 13:16:18
阅读次数:
81
Mybatis中的一级缓存,二级缓存,EHCache缓存的配置,脏数据产生和缓存使用原则 ...
分类:
其他好文 时间:
2019-11-04 17:29:36
阅读次数:
108
一、window 0. cd ~/.ssh ls来查看是否有文件id_rsa以及文件id_rsa.pub 1. 首先,如果你没有ssh key的话,在ternimal下输入命令:ssh-keygen -t rsa -C "youremail@example.com", youremail@examp ...
分类:
其他好文 时间:
2019-11-03 23:40:45
阅读次数:
342
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.S... ...
分类:
移动开发 时间:
2019-11-03 10:27:20
阅读次数:
75
ApacheDbUtilsTest package p1; import com.DataSourceUtil; import entity.Student; import org.apache.commons.dbutils.QueryRunner; import org.apache.commo ...
分类:
数据库 时间:
2019-11-03 01:34:10
阅读次数:
112
using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text; namespace ConvertToTable{ class Program { static ...
分类:
其他好文 时间:
2019-11-03 01:27:57
阅读次数:
57
一、简单查询案例 1、创建studentdb实体类 package cn.student.entity; public class Studentdb { private Integer sid; //编号 private String sname; //姓名 private String sadd ...
分类:
数据库 时间:
2019-11-02 15:22:30
阅读次数:
68
借助一个强大的Nuget 包可以很方便地解析执行Lambda表达式格式的字符串:System.Linq.Dynamic.Core github: https://github.com/StefH/System.Linq.Dynamic.Core var res = list.Where(t => ( ...
有7个筛选条件任意一个条件都可以筛选。采用LINQ查询比较繁琐,且操作步骤增加,选择用SQL判断。 通过判断这几个界面上的文本框和复选框,来追加SQL中的查询条件最为方便 且简单。 ...
分类:
数据库 时间:
2019-11-01 13:18:48
阅读次数:
122