1、 user 实体类 ~~~c public class User { public int ID { get; set; } public string Name { get; set; } public string Pwd { get; set; } public string Email ...
分类:
其他好文 时间:
2020-01-31 22:58:08
阅读次数:
127
IO流 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.IO; using System.Text; namesp ...
EF对数据做什么样的操作,是根据EF的上下文实体状态决定,实体状态有以下5种状态,下面我们就分别看下这5种状态 数据准备,我们看到学生表里有20000名学生记录,最后1位学生的学生编号为0000020000 1、Detached--实体跟上下文压根没关系 我们看到我新创建了名学生,学号为000002 ...
分类:
其他好文 时间:
2020-01-30 09:21:27
阅读次数:
97
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.T ...
FreeSql 取多表数据 以文章随笔与分类为例。 1. 表结构 部分字段如下,其他省略,为了展示一对多关联,一个分类下可以有多个文章。一个文章属于一个分类。 blog_article (随笔表) | 字段 | 类型 | 备注 | | | | | | id | int | | | classify_ ...
分类:
数据库 时间:
2020-01-29 17:48:04
阅读次数:
232
用Linq To SQL 搭建底层 接口 底层 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Syst ...
分类:
数据库 时间:
2020-01-28 19:14:21
阅读次数:
63
C# 控制台应用 实现 2048游戏 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace xxxxx.MessageHandling.Config { public ...
分类:
其他好文 时间:
2020-01-23 13:57:48
阅读次数:
74
日常操作linux 中,通常在使用 ps命令后 用管道连接 查询特定进程会显示 grep进程本身。 如下: 1 [root@ecs-linux-byx ~]# ps -ef|grep gs4 2 root 6284 5879 0 14:30 pts/0 00:00:00 grep --color=a ...
分类:
系统相关 时间:
2020-01-22 18:17:01
阅读次数:
335
您正在使用EF Core编写一个博客应用程序,其中包含实体Post(贴子)和Comment(评论)。使用以下查询加载帖子。之后,如何显式加载Comment? 相关资源:https://www.cnblogs.com/jaxu/p/3700511.html 您正在构建一个包含几个子域的应用程序,每个子 ...
分类:
其他好文 时间:
2020-01-22 16:36:26
阅读次数:
78