/// <summary> /// 获取指定的数据一上下文对象. /// </summary> /// <typeparam name="TContext"></typeparam> /// <returns></returns> public TContext Table <TContext>() where TContext : TableMapper, new() { TContext context = new TContext(); context.SetDataEngine(ReadEngine, WriteEngine); return(context); }
/// <summary> /// 获取指定的数据表上下文对象. /// </summary> /// <typeparam name="TContext"></typeparam> /// <returns></returns> public TContext Table <TContext>() where TContext : TableMapper, new() { TContext context = new TContext(); context.BatchProccesser = this; context.SetDataEngine(Engine, Engine); return(context); }