예제 #1
0
        /// <summary>
        /// 表信息对象,用于对单张表的处理,可以通过自己实现接口来完成效果。
        /// </summary>
        /// <param name="tableName">表名</param>
        /// <typeparam name="T">自己实现的单表操作类</typeparam>
        /// <returns></returns>
        protected virtual ITableProvider GetTableProvider <T>(string tableName) where T : ITableProvider
        {
            ITableProvider provider = Activator.CreateInstance <T>();

            provider.Initialize(this.Database, tableName);
            return(provider);//new T(this.Database, tableName);
        }