会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
懒懒的小易
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2016年7月3日
EF 新增数据时提示it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element
摘要: it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element Unable to update the EntitySet 'Users' beca
阅读全文
posted @ 2016-07-03 14:31 懒懒的小易
阅读(1095)
评论(0)
推荐(0)
2016年6月16日
EF 批量插入,sqlhelper 批量插入
摘要: 需添加一个using System.Linq; 引用 public void BulkInsert(string connection, string tableName, IList list) { using (var bulkCopy = new SqlBulkCopy(connection)) { ...
阅读全文
posted @ 2016-06-16 15:32 懒懒的小易
阅读(809)
评论(0)
推荐(0)
2016年5月20日
C# 自己用到的几个参数转换方法
摘要: /// /// Method:CommandHelper /// Author:Liuyangyi /// Data:2016-05-10 /// public class Command { /// 提供标准 MD5 加密的方法 /// /// /// ...
阅读全文
posted @ 2016-05-20 12:57 懒懒的小易
阅读(660)
评论(0)
推荐(0)
2016年3月21日
asp.net MVC EF Where 过滤条件怎么写
摘要: 做.Net开发的肯定都知道.Net Sql语句有个SqlParameter 一般用来做过滤判断逻辑写,那么到了EF 了还有这样的写法嘛?答案肯定是有的了,这里我只是把最粗糙和简单的写法罗列一些,具体封装方法什么,有兴趣的小伙伴们可以自己去做: 本人原网址:http://www.wuhannews.n
阅读全文
posted @ 2016-03-21 10:12 懒懒的小易
阅读(3823)
评论(0)
推荐(0)
2015年2月2日
EF Code First 数据迁移命令
摘要: 只需要开启程序管理控制台(Package Manager Console)然后输入 Enable-Migrations -ContextTypeName youContextdb(你的数据库上下文名称)
阅读全文
posted @ 2015-02-02 14:27 懒懒的小易
阅读(214)
评论(0)
推荐(0)
2015年2月1日
Linux Centos 怎么安装更新根证书实现支持https访问
摘要: 其实很简单就是一个命令:mozroots--import--ask-remove或者使用:sudoupdate-ca-certificates
阅读全文
posted @ 2015-02-01 21:11 懒懒的小易
阅读(4341)
评论(0)
推荐(0)
asp.net MVC 如何隐藏 Response Header 版本号
摘要: 根据借楼最少资源原则,有时候MVC需要隐藏自己的版本号,其实这里也是比较简单的,只需要在Global.ascx 的Application_Start()中添加一行代码既可添加为 MVCHandler.DisabledMvcResposeHeader=true;既可
阅读全文
posted @ 2015-02-01 11:37 懒懒的小易
阅读(651)
评论(0)
推荐(0)
asp.net MVC dropList 绑定
摘要: 废话我就不多说了。。上个图。给自己备忘一下
阅读全文
posted @ 2015-02-01 09:46 懒懒的小易
阅读(340)
评论(0)
推荐(0)
2015年1月29日
一个Itextsharp 批量添加图片到pdf 方法
摘要: 这里我就直接把我的页面贴进来了using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using iTextSharp;usi...
阅读全文
posted @ 2015-01-29 12:02 懒懒的小易
阅读(1170)
评论(0)
推荐(0)
2015年1月27日
asp.net zip 压缩传输
摘要: 在实际生产中,比如使用xml json 等传输大量数据的时候,有时候会出现等待时间过长,这里分享一个压缩传输的方法首先到网上去下载一个ICSharpCode.SharpZipLib.dll 的dll (百度和google)都是可以搜索到的 这里本人是在传输xml 格式文本的时候感觉网速稍慢,所以找到...
阅读全文
posted @ 2015-01-27 18:23 懒懒的小易
阅读(820)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告