摘要: 核心层 DealerPlatform.Core SqlHelper类 public class SqlHelper { public static string ConStr { get; set; } /// <summary> /// 查询数据获取表格 /// </summary> /// <p 阅读全文
posted @ 2021-05-29 22:21 wesley1680 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 延时加载 int[] arr = { 1,2,3,4,5,6,7,8}; #region 延时加载 //linq语句在这里不会执行。如果不延时加载,直接toList()就行了。 var res = from i in arr where i > 3 select i; //在foreach的时候才会 阅读全文
posted @ 2021-05-28 15:06 wesley1680 阅读(142) 评论(0) 推荐(0) 编辑
摘要: .Net Framework的aop /// <summary> /// 特性类 /// </summary> public class FormFilterAttribute:Attribute { private readonly string _formTitle; public FormFi 阅读全文
posted @ 2021-05-27 20:16 wesley1680 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 引言 在类中实例化其他类,通常称为程序的耦合。程序应追求高内聚,低耦合;反射可以降低耦合。 .net中编译后生成的东西,都能称为程序集,比如dll,exe文件。 通过添加程序集,引用命名空间,可以直接使用程序集的中元素。如果不添加程序和引用命名空间,想使用程序集中的元素,可以通过反射的方式。 反射 阅读全文
posted @ 2021-05-27 11:59 wesley1680 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 命名空间中的类的访问修饰符是什么? static void Main(string[] args) { //能调用student,证明student不是private。实际上,命名空间类的类默认是internal Student s = new Student(); s.Run();//能继承父类中 阅读全文
posted @ 2021-05-24 20:14 wesley1680 阅读(45) 评论(0) 推荐(0) 编辑
摘要: AOP的三种注册方式 方法上注册 类上注册 全局注册 声明方式 继承Attribute和IActionFilter 中间件的执行顺序(startup的cofigurate方法) 从头开始,按照顺序执行。达到UserEnpoints后,再往回走。类比俄罗斯套娃,从外往内,再从内往外。 跨域UserCo 阅读全文
posted @ 2021-05-22 16:27 wesley1680 阅读(39) 评论(0) 推荐(0) 编辑
摘要: .net core环境搭建 安装hosting,等…… webapi 新建 新建webapi项目,选api。 启动方式 IIS启动。直接F5; bin目录下cmd启动,输入命令dotnet 项目dll --urls="http://*:2020 " --ip="127.0.0.1" --port=" 阅读全文
posted @ 2021-05-22 11:36 wesley1680 阅读(68) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataStructure.Review { p 阅读全文
posted @ 2021-05-21 15:36 wesley1680 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一、jdk的安装 1.安装成功后,在dos中定位到安装路径的bin下,运行java或者javac验证安装是否成功。 2.jdk包含jre,是开发环境。jre是运行环境。比如客户部署的环境,可以只装jre。 阅读全文
posted @ 2018-07-31 15:01 wesley1680 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 一、jdk的安装 1.安装成功后,在dos中定位到安装路径的bin下,运行java或者javac验证安装是否成功。 2.jdk包含jre,是开发环境。jre是运行环境。比如客户部署的环境,可以只装jre。 阅读全文
posted @ 2018-07-31 15:01 wesley1680 阅读(62) 评论(0) 推荐(0) 编辑