posted @ 2019-04-22 21:08 火冰·瓶 阅读(143) 评论(0) 推荐(0)
posted @ 2019-04-14 18:20 火冰·瓶 阅读(1073) 评论(0) 推荐(0)
|
摘要:
一、登陆页面的Controller [Authorize(Roles = "Admin,SuperAdmin")] public class ManageController : Controller { public IActionResult Index() { return View(); } 阅读全文
posted @ 2019-04-14 18:20 火冰·瓶 阅读(1073) 评论(0) 推荐(0)
摘要:
一、新建ASP.NET Core 2.0 MVC项目,使用NuGet在浏览中搜索:NLog.Web.AspNetCore,如下图所示: 二、在项目的根目录下新建一个xml类型的nlog.config文件 nlog.config文件内容如下: <?xml version="1.0" encoding= 阅读全文
posted @ 2019-04-14 17:59 火冰·瓶 阅读(663) 评论(0) 推荐(0)
摘要:
原文:http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html 网页布局(layout)是 CSS 的一个重点应用。 布局的传统解决方案,基于盒状模型,依赖 display 属性 + position属性 + float属性。它对于那些特殊布局 阅读全文
posted @ 2018-11-29 22:55 火冰·瓶 阅读(128) 评论(0) 推荐(0)
摘要:
官方文档详见:https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework-core-scaffold-example.html Scaffolding a Database Using Package Manage 阅读全文
posted @ 2018-11-10 23:57 火冰·瓶 阅读(151) 评论(0) 推荐(0)
摘要:
自己写一个类继承BackgroundService Startup.cs中注入 阅读全文
posted @ 2018-10-28 22:51 火冰·瓶 阅读(2684) 评论(0) 推荐(0)
摘要:
自定义一个类EnumService.cs , 增加静态方法GetDescription()根据传入的枚举值来读取Description信息 在输出枚举值的地方增加对EnumService.GetDescription()的调用 阅读全文
posted @ 2018-10-23 00:03 火冰·瓶 阅读(1623) 评论(0) 推荐(1)
摘要:
fullCalendar日历控件官方网址: https://fullcalendar.io/ 1.需要引入的文件 2.HTML页面 3.生成Json数据的后台 4.官方的Json数据源格式 阅读全文
posted @ 2018-09-28 22:44 火冰·瓶 阅读(1700) 评论(0) 推荐(0)
摘要:
github地址: https://github.com/yuanzm/simple-date-picker#simple-date-picker simple-date-picker 基于zepto的移动端轻量级日期插件 安装 支持下面两种方式 git clone之后直接拷贝引用bin文件夹下面的 阅读全文
posted @ 2018-09-05 14:56 火冰·瓶 阅读(2176) 评论(0) 推荐(0)
摘要:
一、难以被接受的async 自从C#5.0,语法糖大家庭又加入了两位新成员: async和await。然而从我知道这两个家伙之后的很长一段时间,我甚至都没搞明白应该怎么使用它们,这种全新的异步编程模式对于习惯了传统模式的人来说实在是有些难以接受,不难想象有多少人仍然在使用手工回调委托的方式来进行异步 阅读全文
posted @ 2018-08-31 01:04 火冰·瓶 阅读(237) 评论(0) 推荐(0) |
||