摘要:
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... 阅读全文
摘要:
http://msdn.microsoft.com/en-us/library/ms972319.aspx http://msdn.microsoft.com/en-us/library/ms972370.aspx 阅读全文
摘要:
From: http://devlicio.us/blogs/jeff_perrin/archive/2006/12/13/the-specification-pattern.aspx Hot on the heels of my devastatingly fantastic post on an implementation of the Snapshot Pattern, I give y... 阅读全文
摘要:
下面全部内容来源于MSDN: http://msdn.microsoft.com/en-us/data/jj591621.aspx This walkthrough will provide an overview Code First Migrations in Entity Framework. You can either complete the entire walkthro... 阅读全文
摘要:
2012-2-4加入 http://thedatafarm.com/blog/ EF专家,写了几本关于EF方面的书,英文已经可以下载了。 阅读全文
摘要:
from: http://thedatafarm.com/blog/data-access/digging-in-to-multi-tenant-migrations-with-ef6-alpha/ I wanted to give the new Multi-Tenant migration feature in the EF6 alpha (released Oct 30, 2012) a ... 阅读全文
摘要:
一种模式,对多个DBContext的支持。 引自:http://stackoverflow.com/questions/6654355/multiple-dbcontexts-in-n-tier-application Giving your Factory and UnitOfWork a generic type parameter might be a solution: public... 阅读全文
摘要:
public class Model { } public interface IRepository<TEntity> { /// <summary> /// Gets entity by key. /// </summary> /// <typeparam ... 阅读全文
摘要:
Reading All Users Session 这个功能,应该只限于 进行内会话,对于其它的存储方式未进行测试。当然,下面的方法也没有进行测试。理解一下实现机制就可以了。 from :http://weblogs.asp.net/imranbaloch/archive/2010/04/05/reading-all-users-session.aspx 阅读全文
摘要:
namespace Kooboo.CMS.Sites.Services { public class CodeSnippetManager { protected string BasePath { get { return Kooboo.... 阅读全文