//private ISqlBaseFinanceData _sqlFinanceData;


        public AutoDetectChangeContextWrap(IBaseServiceData serviceData)
        {
            //_service = service;
            //_service.BaseRepository.BaseDB.BaseDataContext.Configuration.AutoDetectChangesEnabled = true;
            //_sqlFinanceData = sqlFinanceData;
            ServiceData = serviceData;
            ServiceData.BaseData.BaseDB.BaseDataContext.Configuration.AutoDetectChangesEnabled = false;
            ServiceData.BaseData.BaseDB.ManualDetectChangeObject = true;
        }
 /// <summary>
 /// 创建AutoDetectChangeContext的实例
 /// </summary>
 /// <param name="serviceData"></param>
 /// <returns></returns>
 public static AutoDetectChangeContextWrap InstanceAutoDetectChangeContextWrap(this IBaseServiceData serviceData)
 {
     return(new AutoDetectChangeContextWrap(serviceData));
 }