安装PM > Install-Package DacheCache.Provider.EF -Pre安装Dache ( )并按照配置说明( )进行操作。如何使用它使用基于代码的配置来配置EF。以下是此类文件的示例: public class MyApplicationDbConfiguration : DbConfiguration { public AppDbConfiguration () { var transactionHandler = new CacheTransactionHandler ( new DacheCacheProvider ()); AddInterceptor ( transactionHandler ); Loaded += ( sender , a