摘要: 两种方式: Using the IE X-UA-Compatible Meta header Using Application specific FEATURE_BROWSER_EMULATION Registry Keys Registry Key Location for FEATURE_BR 阅读全文
posted @ 2019-03-12 15:08 woolhoo 阅读(366) 评论(0) 推荐(0) 编辑
摘要: Full path vs relative pathOne of the reasons why it was hard to work with database files before is that the full path to the database was serialized i 阅读全文
posted @ 2018-03-31 17:16 woolhoo 阅读(156) 评论(0) 推荐(0) 编辑
摘要: // 即使带上这种废话一样的参数都能获得性能巨大提升,似乎受到Tsql中Exists的机制的影响 IQueryable.Any(p => p.Id > 0); 阅读全文
posted @ 2018-02-28 17:04 woolhoo 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 一个非常弱智的错误,当初我碰到这个错误花了一个下午找解决方案,网上的解决方案包括“删除临时目录”,“链接数据库的安全选项”,“修改ttinclude“文件之类的都不行,最后发现有的数据库可以成功,对两个数据库进行比较后发现明显的不同在于数据库名称,我的数据库名称里带有-(减号),修改后成功。 多么痛 阅读全文
posted @ 2017-11-17 17:31 woolhoo 阅读(128) 评论(0) 推荐(0) 编辑
摘要: ((IObjectContextAdapter)objectEntity).ObjectContext.Connection.Open(); DbTransaction trans = (IObjectContextAdapter)objectEntity).ObjectContext.Connection.BeginTransaction(); 阅读全文
posted @ 2017-09-29 14:51 woolhoo 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 括号内的字符都可以,不在这个范围内的字符都需要转义。(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=`.)在不同的实现环境下可能略有差异,例如有些环境可能会对括号内的某些字符也进 阅读全文
posted @ 2017-04-25 14:31 woolhoo 阅读(620) 评论(0) 推荐(0) 编辑
摘要: SqlQuery会尝试将返回的数据转换为相应的实体。 阅读全文
posted @ 2017-04-07 15:48 woolhoo 阅读(308) 评论(0) 推荐(0) 编辑
摘要: context.Database.ExecuteSqlCommand(sql, parameters); 阅读全文
posted @ 2017-04-07 15:46 woolhoo 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 为了正常序列化和反序列化,可以直接禁止建立代理类,尤其是当序列化和反序列化发生在不同AppDomain的情况下时反序列化必须失败。 否则就要通过ProxyDataContractResolver自己实现代理类的序列化,那就累了!!! 阅读全文
posted @ 2017-03-29 18:52 woolhoo 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 没有什么太好的方法,只能使用DbDataRecord或dynamic作为类型指定,返回类型操作不直观,但能用。 阅读全文
posted @ 2017-03-29 14:21 woolhoo 阅读(296) 评论(0) 推荐(0) 编辑