摘要: ef联表查询是使用EntityFramwork框架的项目都会用到,下面给的一个联表查询示例,几乎可以满足项目中所有的联表查询逻辑: var list = DBContext.Demo.Demo_User.Select(Demo.DataAcess.Demo.Demo_UserType, DataAc 阅读全文
posted @ 2017-03-21 10:37 飞刀软件 阅读(2848) 评论(0) 推荐(0) 编辑
摘要: 编程用何种语言不重要,重要的是其设计思想。 阅读全文
posted @ 2017-03-15 16:27 飞刀软件 阅读(164) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 发送邮件功能,发送邮箱需要开通stmp服务 /// </summary> /// <param name="userEmailAddress">发件人地址</param> /// <param name="userName">发件人姓名(可为空)</param> 阅读全文
posted @ 2019-05-05 20:27 飞刀软件 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 本地项目推送到git步骤:https://www.jianshu.com/p/31dea20b0084 阅读全文
posted @ 2019-04-25 16:05 飞刀软件 阅读(281) 评论(0) 推荐(0) 编辑
摘要: http://tool.oschina.net/encrypt/ 阅读全文
posted @ 2019-04-23 17:21 飞刀软件 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: jquery中有时候也要用到委托,示例如下: 第一步:定义委托函数 function postComment(url, data, callback) {//callback就是委托函数,调用完最后才执行 console.log('datas', JSON.stringify(data)); $.a 阅读全文
posted @ 2019-03-22 15:58 飞刀软件 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 第一步:在webconfig文件里添加authentication配置节点,代码如下: <authentication mode="Forms"> <forms loginUrl="admin/Login.aspx" name=".ASPXAUTH"></forms> </authenticatio 阅读全文
posted @ 2019-03-21 17:24 飞刀软件 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 第一步:打开Global文件,找到Application_BeginRequest事件。 第二步:添加非法越权操作代码,限制内容页只能在框架内打开,代码如下: HttpApplication app = (HttpApplication)sender; string requestPath = ap 阅读全文
posted @ 2019-03-21 17:18 飞刀软件 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 控制面板——用户账户——管理您的凭据——普通凭据里修改git账号 阅读全文
posted @ 2018-12-03 17:33 飞刀软件 阅读(2785) 评论(0) 推荐(0) 编辑
摘要: SELECT TableName=CASE WHEN C.column_id=1 THEN O.name ELSE N'' END, TableDesc=ISNULL(CASE WHEN C.column_id=1 THEN PTB.[value] END,N''), Column_id=C.col 阅读全文
posted @ 2018-11-29 14:33 飞刀软件 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: 案例如下: options.AddSecurityDefinition("Bearer", new ApiKeyScheme { Description = "Authorization format : Bearer {token}", Name = "Authorization", In = " 阅读全文
posted @ 2018-11-19 17:30 飞刀软件 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 实例代码如下: afterCreate: function () { var editerDoc = this.edit.doc;//得到编辑器的文档对象 //监听粘贴事件, 包括右键粘贴和ctrl+v $(editerDoc).bind('paste', null, function (e) { 阅读全文
posted @ 2018-11-19 13:24 飞刀软件 阅读(2807) 评论(0) 推荐(0) 编辑