一,根据我们学习过core,都知道我们是在ConfigureServices中注册服务的,也是将我们实现注入,如下startup的简单的ConfigureServices方法, public void ConfigureServices(IServiceCollection services) { ...
分类:
Web程序 时间:
2020-07-24 19:02:46
阅读次数:
129
// Object拆箱,取List类型 Type tp = DataSource.GetType(); // 判断类型是否是List<>泛类型 if (tp.IsGenericType && typeof(System.Collections.Generic.List<>).IsAssignable ...
分类:
其他好文 时间:
2020-07-21 13:58:00
阅读次数:
71
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; using System.Net;using System.Net.Sock ...
使用SqlConnection连接到SQL Server2019 且返回表的行数。 1、界面设计 2、代码设计 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using Sys ...
分类:
数据库 时间:
2020-07-20 15:20:43
阅读次数:
122
类视图 在写视图的时候,Django除了使用函数作为视图,也可以使用类作为视图。使用类视图可以使用类的一些特性,比如继承等。 View: django.views.generic.base.View是主要的类视图,所有的类视图都是继承自他。如果我们写自己的类视图,也可以继承自他。然后再根据当前请求的 ...
分类:
其他好文 时间:
2020-07-20 13:18:19
阅读次数:
62
授权过滤器 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Http.Controllers; u ...
分类:
Web程序 时间:
2020-07-20 10:40:40
阅读次数:
85
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using WebApplicatio ...
分类:
Web程序 时间:
2020-07-20 10:40:20
阅读次数:
85
服务端 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Thr ...
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace linq延迟状态终止 ...
分类:
其他好文 时间:
2020-07-19 11:32:54
阅读次数:
69
using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Data.SqlClient; using System.Reflection; usi ...
分类:
数据库 时间:
2020-07-18 16:11:44
阅读次数:
118