/// <summary>
 /// 获取lua sql的执行器
 /// </summary>
 /// <typeparam name="TEntity">表的实体类型(用于获取表名)</typeparam>
 /// <param name="mgr"></param>
 /// <param name="db"></param>
 /// <param name="sqlName">sql名称</param>
 /// <returns></returns>
 public static ILuaSqlConfigExecutor GetExecutor <TEntity>(this ILuaSqlConfigManager mgr, DbContext db,
                                                           [CallerMemberName] string sqlName = null)
 {
     return(mgr.GetExecutor(db, typeof(TEntity), sqlName));
 }
 /// <summary>
 /// 获取lua sql的执行器
 /// </summary>
 /// <param name="mgr"></param>
 /// <param name="db"></param>
 /// <param name="tableEntityType">表的实体类型(用于获取表名)</param>
 /// <param name="sqlName">sql名称</param>
 /// <returns></returns>
 public static ILuaSqlConfigExecutor GetExecutor(this ILuaSqlConfigManager mgr, DbContext db, Type tableEntityType,
                                                 [CallerMemberName] string sqlName = null)
 {
     return(mgr.GetExecutor(db, EFHelper.Services.EFCoreExUtility.GetTableName(tableEntityType), sqlName));
 }