mapper 分库分表索引设置 或 数据保存到索引库

services.AddSingleton<IDbTableEs, DbTableEsProvider>();

private readonly IDbTableEs _dbTableEs;

IDbTableEs dbTableEs,

_dbTableEs = dbTableEs;

IDbTableEs

using RG3.DO.Abstractions.Entity;
using RG3.PF.Abstractions.Entity;
using RG3.PF.Abstractions.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace RG3.BO.DB.Providers
{
    /// <summary>
    /// 添加分库分表索引查询信息
    /// </summary>
    public class DbTableEsProvider : IDbTableEs
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pf"></param>
        /// <param name="sql"></param>
        /// <param name="lstGroupDbV"></param>
        /// <returns></returns>
        public Task Save(PFGlobalParameter pf, string sql, Dictionary<string, SqlTable> lstGroupDbV)
        {
            return Task.Run(() => { });
        }
    }
}
文档更新时间: 2021-09-14 22:17   作者:admin