06 2016 档案

EF常用查询写法
摘要:1、var list = from category in context.category join commodity in context.commodity on category.id equals commodity. categoryID where category.id>12 or 阅读全文

posted @ 2016-06-29 10:03 月&&生 阅读(742) 评论(0) 推荐(0)

易车面试题
摘要:1、装箱拆箱 static void Main(string[] arg) { int i = 2000; object a = i; i = 2001; int j = (int)a; Console.WriteLine("i={0},a={1},j={2}", i, a, j); Console 阅读全文

posted @ 2016-06-23 21:01 月&&生 阅读(1139) 评论(0) 推荐(0)

WebService 基本操作
摘要:1、新建asp.net web 应用程序 2、添加web 服务webservice.asmx public string HelloWorld(int a) { if (a==1) { return "ceshi11"; } else { return "helloword"; } } 3、直接运行 阅读全文

posted @ 2016-06-22 15:30 月&&生 阅读(185) 评论(0) 推荐(0)

EF 实践
摘要:一、CodeFirst 1、新建MVCEFManger(业务层)项目 在该项目下引入entityframework 安装包(用来生成数据库或者实体) PM> install-package entityframework(程序包管理器控制台enter) 2、新建MVCEF.Entity项目 添加相应 阅读全文

posted @ 2016-06-21 17:23 月&&生 阅读(213) 评论(0) 推荐(0)

汽车之家面试题2016
摘要:1、输入url发生了什么 输入地址 浏览器查找域名的 IP 地址 这一步包括 DNS 具体的查找过程,包括:浏览器缓存->系统缓存->路由器缓存... 浏览器向 web 服务器发送一个 HTTP 请求 服务器的永久重定向响应(从 http://example.com 到 http://www.exa 阅读全文

posted @ 2016-06-21 13:55 月&&生 阅读(413) 评论(0) 推荐(0)

C# 基础·算法篇
摘要:1、冒泡排序 排序 int[] ArrayList = new int[] {81,23,66,34,99,77,98 }; for (int i = 0; i < ArrayList.Count(); i++) { for (int j = i; j < ArrayList.Count(); j+ 阅读全文

posted @ 2016-06-20 14:47 月&&生 阅读(260) 评论(0) 推荐(0)

C# 基础·常见面试
摘要:1、WinForm遍历控件 foreach (System.Windows.Forms.Control control in this.Controls) { if (control is System.Windows.Forms.TextBox) { System.Windows.Forms.Te 阅读全文

posted @ 2016-06-20 10:01 月&&生 阅读(218) 评论(0) 推荐(0)

C# 特殊处理使用方法
摘要:1、时间处理 Model.PiDaiTime.ToString("yyyyMMdd") == "00010101" ? DateTime.Now.ToString("yyyy-MM-dd") : Model.PiDaiTime.ToString("yyyy-MM-dd") 阅读全文

posted @ 2016-06-17 17:01 月&&生 阅读(142) 评论(0) 推荐(0)

C# 第三方组件使用
摘要:1、log4net使用 阅读全文

posted @ 2016-06-17 17:00 月&&生 阅读(368) 评论(0) 推荐(0)

JS 插件使用
摘要:1、时间控件的使用 My97DatePicker WdatePicker({ minDate: '%y-%M-{%d}'}) 默认当前日期以后 LoanMessage.LoanAppAgentModel.MianQianTime.Year != 0001 阅读全文

posted @ 2016-06-17 16:58 月&&生 阅读(167) 评论(0) 推荐(0)

JS 常用特殊处理
摘要:trim()移除空格 parInt() 转换为整数 parFloat()取浮点数 toFixed(2) 保留两位 阅读全文

posted @ 2016-06-17 16:57 月&&生 阅读(157) 评论(0) 推荐(0)

JS 表单元素常用查找及添加属性
摘要:1、^前置匹配 $('div[id^=DivError_]') 2、取name属性 var v = $("input[name='radion']:checked").val() 3、select 标签遍历 $("#selectName option").each(function () {}); 阅读全文

posted @ 2016-06-17 16:48 月&&生 阅读(527) 评论(0) 推荐(0)

JQuery 关于复制或者删除html块
摘要:1、复制当前ul 2.移除ul块 阅读全文

posted @ 2016-06-17 15:56 月&&生 阅读(854) 评论(0) 推荐(0)

Jquery 关于请求 及解析方式
摘要:1、Json解析、POST $.post("@Url.Action("EverbrightBankCity", "ContractPost")", { City: city, ApplyCode: ApplyCode }, function (data) { var json = eval(data 阅读全文

posted @ 2016-06-17 15:48 月&&生 阅读(307) 评论(0) 推荐(0)

C# Json 常用
摘要:1、MVC返回json方式 1、(自定义返回json对象)var optionStrCity=“”;var optionStrBank =“”; return Json(new { optionStrCity = optionStrCity, optionStrBank = optionStrBan 阅读全文

posted @ 2016-06-17 15:35 月&&生 阅读(297) 评论(0) 推荐(0)

SQL 常用操作
摘要:1、单表多条插入 insert into ApplyLoan(表名)(ApplyCode,DataType,OrderType,)select ApplyCode,3,400,ApplyUser from ZXApplyLoan where ApplyCode not in ('ZX20160504 阅读全文

posted @ 2016-06-17 14:54 月&&生 阅读(240) 评论(0) 推荐(0)

EXCEL 批量生成SQL
摘要:1、批量生成更新语句 ="update applyloan_zx set fangkuanmoney="&A2&",fangkuantime='"&B2&"',LendingWay='"&C2&"',LendingID="&D2&" where applycode='"&E2&"'" 阅读全文

posted @ 2016-06-14 14:16 月&&生 阅读(183) 评论(0) 推荐(0)