摘要: $(ProjectDir)Libs\Afterthought\Afterthought.Amender.exe "$(TargetPath)" "$(TargetDir)EntityFramework.Patterns.dll" 我实际上分析代码好久,也没整明白它是怎么运行的,看一下官方文档明白了,原来。。。 Next, add the following as a... 阅读全文
posted @ 2013-02-06 16:22 张保维 阅读(754) 评论(0) 推荐(0) 编辑
摘要: from : http://msdn.microsoft.com/zh-cn/library/vstudio/system.diagnostics.contracts.pureattribute(v=vs.110).aspx 意义是:指示一个类型或方法为纯类型或纯方法,即它不进行任何可视的状态更改。 纯类型或纯方法 ,我真他妈不知道是什么意思,我google了一下,有人说,你不知... 阅读全文
posted @ 2013-02-06 15:20 张保维 阅读(441) 评论(0) 推荐(0) 编辑
摘要: from:http://efpatterns.codeplex.com/documentation 中规中矩的实现的 uow ,repository, 其中用到了 Afterthought 项目,有点小巧的感觉,这个项目值的看一下,其中,CacheableRepository 用到了过期策略.这点可以在以后用于项目中,将过期依赖改一下,比如 config文件的更改,然后自动更新static... 阅读全文
posted @ 2013-02-06 01:11 张保维 阅读(157) 评论(0) 推荐(0) 编辑
摘要: from:https://nuget.org/packages/Afterthought/1.0.8 site: https://github.com/vc3/Afterthought Afterthought allows developers to post-process .NET assemblies to add code that either cannot be added... 阅读全文
posted @ 2013-02-06 00:14 张保维 阅读(223) 评论(0) 推荐(0) 编辑