大叔 EF 来分析 EntityFrameworks.Data.Core 1

  • Common

1
SQL命令拦截器
主要实现EF的读写分离

SqlCommandInterceptor

继承父类DbCommandInterceptor


2
SQL锁选项
SqlLock

3
忽略大小写,作为Contaions方法的参数
StringComparisonIgnoreCase
继承IEqualityComparer

4

同步文章:http://www.cnblogs.com/lori/p/3455393.html
对TransactionScope,让它对同一个数据库不产生msdtc服务
TransactionScopeNoMsdtc

  • DistributedReadWriteForEF

1
 redis配置信息加载
DistributedReadWriteManager

2

DistributedReadWriteForEFSection块,
在web.config中提供DistributedReadWriteForEFSection块定义
DistributedReadWriteSection
继承ConfigurationSection

3
Section处理程序
DistributedReadWriteSectionHandler
继承IConfigurationSectionHandler

4
SQL命令拦截器
作者:张占岭
主要实现EF的读写分离
通过读写分离的实验证明的东西
ReadWriteCommandInterceptor
继承 DbCommandInterceptor

原文地址:https://www.cnblogs.com/ganmk--jy/p/5370106.html