Example #1
0
 /// <summary>
 /// 移除缓存
 /// </summary>
 /// <param name="cache"></param>
 /// <param name="tableEntityType">表的实体类型(用于获取表名)</param>
 /// <param name="cacheType">缓存的类型</param>
 /// <param name="sql"></param>
 /// <param name="sqlParamModel">sql的参数模型对象</param>
 /// <param name="ignoreProptsForParamModel">sql的参数模型对象中需要忽略的属性名</param>
 public static void RemoveUseModel(this IEFQueryCache cache, Type tableEntityType, string cacheType, string sql,
                                   object sqlParamModel, IEnumerable <string> ignoreProptsForParamModel)
 {
     cache.RemoveUseModel(EFHelper.Services.EFCoreExUtility.GetTableName(tableEntityType), cacheType,
                          sql, sqlParamModel, ignoreProptsForParamModel);
 }