上篇文章主要讲了如何配置EF, 我们回顾下主要过程: 创建Data Model > 创建Database Context >创建databaseInitializer >配置entityFramework的context配置节。 对这个过程还有疑问的可以去上篇再看一下。 本次我们就主要讲解 (1) ...
分类:
Web程序 时间:
2020-02-04 10:37:50
阅读次数:
82
IO流 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.IO; using System.Text; namesp ...
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
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
作为系列的最后一篇,得要说说C#驱动对mongodb的操作,目前驱动有两种:官方驱动和samus驱动,不过我个人还是喜欢后者,因为提供了丰富的linq操作,相当方便。官方驱动:https://github.com/mongodb/mongo-csharp-driver/downloads。下载后,还 ...
分类:
数据库 时间:
2020-01-20 12:38:46
阅读次数:
88
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...