/// <summary> /// SqlNonQuery /// </summary> /// <param name="configExecutor"></param> /// <param name="paramsModel">sql的参数模型对象</param> /// <param name="ignoreProptsForParamModel">sql的参数模型对象中需要忽略的属性名</param> /// <param name="policies">策略</param> /// <returns></returns> public static int NonQueryUseModel(this ISqlConfigExecutor configExecutor, object paramsModel, IEnumerable <string> ignoreProptsForParamModel, IDictionary <string, ISqlConfigPolicy> policies) { return(configExecutor.NonQuery(EFHelper.Services.SqlParamConverter.ObjectToDBParams(configExecutor.DB, paramsModel, ignoreProptsForParamModel), policies)); }
/// <summary> /// SqlNonQuery /// </summary> /// <param name="configExecutor"></param> /// <param name="parameters">sql的参数</param> /// <param name="policies">策略</param> /// <returns></returns> public static int NonQueryUseDict(this ISqlConfigExecutor configExecutor, IDictionary <string, object> parameters, IDictionary <string, ISqlConfigPolicy> policies) { return(configExecutor.NonQuery(EFHelper.Services.SqlParamConverter.DictionaryToDBParams(configExecutor.DB, parameters), policies)); }
/// <summary> /// SqlNonQuery /// </summary> /// <param name="configExecutor"></param> /// <param name="paramsModel">sql的参数模型对象</param> /// <param name="ignoreProptsForParamModel">sql的参数模型对象中需要忽略的属性名</param> /// <param name="clearPolicy">缓存清理策略</param> /// <returns></returns> public static int NonQueryUseModel(this ISqlConfigExecutor configExecutor, object paramsModel, IEnumerable <string> ignoreProptsForParamModel, SqlClearCachePolicy clearPolicy = null) { return(configExecutor.NonQuery(EFHelper.Services.SqlParamConverter.ObjectToDBParams(configExecutor.DB, paramsModel, ignoreProptsForParamModel), ToPolicies(clearPolicy))); }
/// <summary> /// SqlNonQuery /// </summary> /// <param name="configExecutor"></param> /// <param name="parameters">sql的参数</param> /// <param name="clearPolicy">缓存清理策略</param> /// <returns></returns> public static int NonQueryUseDict(this ISqlConfigExecutor configExecutor, IDictionary <string, object> parameters, SqlClearCachePolicy clearPolicy = null) { return(configExecutor.NonQuery(EFHelper.Services.SqlParamConverter.DictionaryToDBParams(configExecutor.DB, parameters), ToPolicies(clearPolicy))); }
/// <summary> /// SqlNonQuery /// </summary> /// <param name="configExecutor"></param> /// <param name="paramsModel">sql的参数模型对象</param> /// <param name="ignoreProptsForParamModel">sql的参数模型对象中需要忽略的属性名</param> /// <returns></returns> public static int NonQueryUseModel(this ISqlConfigExecutor configExecutor, object paramsModel, params string[] ignoreProptsForParamModel) { return(configExecutor.NonQuery(EFHelper.Services.SqlParamConverter.ObjectToDBParams(configExecutor.DB, paramsModel, ignoreProptsForParamModel), null)); }