摘要: 1.新建两个实体,一个班级有多个学生 public class Student { public int StudentId { get; set; } public string StudentName { get; set; } public Grade Grade { get; set; } 阅读全文
posted @ 2018-01-10 11:03 BornReady 阅读(665) 评论(0) 推荐(0) 编辑
摘要: vmware安装centos7 mini后启用网络 1.输入命令 cd /etc/sysconfig/network scripts 2.敲入ls命令查看文件夹下的文件 3.修改第一个配置文件ifcfg ens33,将onboot=no改为onboot=yes 4.重启网络服务 service ne 阅读全文
posted @ 2018-01-06 15:22 BornReady 阅读(110) 评论(0) 推荐(0) 编辑
摘要: ![](http://images2015.cnblogs.com/blog/670689/201703/670689-20170305205220501-1040926097.png) 阅读全文
posted @ 2017-03-05 20:53 BornReady 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 利用jquery的ajaxPrefilter阻止重复发送请求 (function ($) { var pendingRequests = {}; // 所有ajax请求的通用前置filter $.ajaxPrefilter(function (options, originalOptions, jq 阅读全文
posted @ 2017-01-10 19:59 BornReady 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 大体思路是在当前跳转链接追加一个参数memoryguid,以guid为key把查询query保存在cookie里,跳转的时候带走这个guid,回来的时候还带着,这样我们就能根据这个guid从cookie里获取我们的query了.思路确定了,根据实际的情况实现适合自己的代码就行了,我们index是主页 阅读全文
posted @ 2016-12-22 11:58 BornReady 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1.c date to js date var csharpStr='/Date(1479694396330)/'; //替换掉非数字 csharpStr=csharpStr.replace(/[^0 9+]/g, ''); var date = new Date(parseInt(csharpDa 阅读全文
posted @ 2016-11-22 14:42 BornReady 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 1.拓展EnumHelper public static class EnumHelper { // Get the value of the description attribute if the // enum has one, otherwise use the value. public 阅读全文
posted @ 2016-11-07 17:46 BornReady 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 1.List to DataTable public static DataTable ToDataTable(this IList data) { DataTable dataTable = new DataTable(typeof(TSource).Name); PropertyInfo[] p 阅读全文
posted @ 2016-05-04 23:50 BornReady 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 一对一注册 直接注册组件 container.Register( Component.For() ); 注册接口并提供组件 container.Register( Component.For() .ImplementedBy() ); //非泛型重载方法,和上面的效果是一样的 container.R 阅读全文
posted @ 2016-03-24 18:38 BornReady 阅读(380) 评论(0) 推荐(0) 编辑