Fork me on GitHub

11 2014 档案

摘要:博文目录:* 暂时开发模式* Code First 具体体现* DbContext 配置* Entity 映射关联配置* Migration 问题纪录(已解决)之前的一篇博文:[EF7 Code First Only-所引发的一些“臆想”](http://www.cnblogs.com/xishua... 阅读全文
posted @ 2014-11-28 09:16 田园里的蟋蟀 阅读(11326) 评论(46) 推荐(14) 编辑
摘要:AutoMapper:[Queryable Extensions](https://github.com/AutoMapper/AutoMapper/wiki/Queryable-Extensions)示例代码:```cssharpusing (var context = new orderEnti... 阅读全文
posted @ 2014-11-26 10:49 田园里的蟋蟀 阅读(893) 评论(0) 推荐(0) 编辑
摘要:示例代码:```cssharppublic List GetLinesForOrder(int orderId){ Mapper.CreateMap() .ForMember(dto => dto.Item, conf => conf.MapFrom(ol => ol.I... 阅读全文
posted @ 2014-11-25 17:32 田园里的蟋蟀 阅读(921) 评论(0) 推荐(0) 编辑
摘要:由《星际穿越》所“臆想”的实体和值对象,纯属扯淡,切勿当真! 阅读全文
posted @ 2014-11-23 18:02 田园里的蟋蟀 阅读(2660) 评论(2) 推荐(3) 编辑
摘要:本篇博文目录:* ASP.NET 5 模版* ASP.NET 5 目录结构* 前端管理工具* 无编译开发* Microsoft Git Provider* 智能感知和错误信息* Smart Unit Testing* 等待发现。。。Visual Studio 2015 Preview 版本部分说明:... 阅读全文
posted @ 2014-11-19 23:47 田园里的蟋蟀 阅读(15780) 评论(56) 推荐(52) 编辑
摘要:* 小写:toLowerCase()* 大写:toUpperCase()示例代码:```javascript``` 阅读全文
posted @ 2014-11-15 14:38 田园里的蟋蟀 阅读(925) 评论(2) 推荐(0) 编辑
摘要:昨天微软干了几件了不起的事:.NET开发环境将开源、跨平台支持(Mac OS X和Linux)、多设备支持(WP、Android和iOS)和Visual Studio免费(Visual Studio Community 2013),详细查看: "微软开放.NET框架源代码和Mono" "微软宣布.... 阅读全文
posted @ 2014-11-14 03:21 田园里的蟋蟀 阅读(7118) 评论(53) 推荐(35) 编辑
摘要:下载地址(Lite 免费版):[Download ISAPI_Rewrite 3](http://www.helicontech.com/isapi_rewrite/download.html)配置(导入自定义 httpd.ini 文件):IIS ISAPI 筛选器(不需要重写的站点可以移除):参考... 阅读全文
posted @ 2014-11-12 17:07 田园里的蟋蟀 阅读(525) 评论(0) 推荐(0) 编辑
摘要:重写 AuthorizeAttribute 的 OnAuthorization 方法:```cssharpusing System.Web.Mvc;namespace Demo.Web.Common{ public class AuthorizeUserAttribute : Authoriz... 阅读全文
posted @ 2014-11-11 10:57 田园里的蟋蟀 阅读(2077) 评论(0) 推荐(0) 编辑
摘要:上一篇:[DDD 领域驱动设计-三个问题思考实体和值对象](http://www.cnblogs.com/xishuai/p/ddd-entity-value-object.html)说实话,整理现在这一篇博文的想法,在上一篇发布出来的时候就有了,但到现在才动起笔来,而且写之前又反复读了上一篇博文的... 阅读全文
posted @ 2014-11-10 15:53 田园里的蟋蟀 阅读(3624) 评论(20) 推荐(3) 编辑
摘要:>At TechEd North America we were excited to announce our plans for EF7, and even demo some very early features. This post will cover the announcements... 阅读全文
posted @ 2014-11-08 22:29 田园里的蟋蟀 阅读(8600) 评论(92) 推荐(23) 编辑
摘要:在 ASP.NET MVC 4/5 应用程序发布的时候,遇到一个问题,在本应用程序中进行身份验证是可以,但不能和其他“二级域名”共享,在其他应用程序身份验证,不能和本应用程序共享,示例代码:```cssharpSystem.Web.Security.FormsAuthentication.SetAu... 阅读全文
posted @ 2014-11-07 17:44 田园里的蟋蟀 阅读(2027) 评论(3) 推荐(0) 编辑
摘要:在使用 EF Code First 的时候,我们经常会对项目中的 Entry 进行一对多、多对多的映射配置,这时候就会产生主实体和子实体的概念,我们在添加、修改他们的时候,有时候会产生一些问题,比如添加主实体的时候,我们不想添加子实体,看一个 User-Role 场景:```cssharppubli... 阅读全文
posted @ 2014-11-06 15:53 田园里的蟋蟀 阅读(2670) 评论(16) 推荐(2) 编辑

点击右上角即可分享
微信分享提示