摘要: 例一:要求:查询是否存在名字为“张三”的学生。 例二:要求:查询教过“张三”或“李四”的老师。 在导航属性里面使用count和使用any性能区别不大,反而FirstOrDefault() != null的方式性能最差。 在直接属性判断里面any和FirstOrDefault() != null性能区 阅读全文
posted @ 2018-07-12 14:52 超级驼鹿 阅读(3295) 评论(0) 推荐(0) 编辑
摘要: public ActionResult uploadPhos(HttpPostedFileBase files) //多图片上传 { if (!Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + @"\Uploads")) //判断文件夹 阅读全文
posted @ 2018-07-11 16:12 超级驼鹿 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 1.View <button type="button" class="layui-btn" id="test"></button> <h3>预览</h3> <img id ="img" src=""> 2.Js <script> $(function () { layui.use('upload' 阅读全文
posted @ 2018-07-11 16:01 超级驼鹿 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 1)转换日期格式为DateTime类型 DateTime dtToday = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd"));//今天 DateTime dtNexDay = Convert.ToDateTime(DateTime.No 阅读全文
posted @ 2018-06-28 17:43 超级驼鹿 阅读(2881) 评论(0) 推荐(0) 编辑
摘要: HTTP 即超文本传输协议,它规定了数据在网络中传输的格式, HTTP 在应用层将数据封装成固定的格式,然后再交由传输层去进行传输 一:网络由下往上 物理层 数据链路层 网络层 (ip协议) 传输层 (tcp协议) 会话层 表示层和应用层 (http协议) 二: Socket:tcp/ip协议的封装 阅读全文
posted @ 2018-06-22 14:18 超级驼鹿 阅读(285) 评论(0) 推荐(0) 编辑
/*