/// <summary>
        /// Execute a query to detect if a table already exists
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public async Task <bool> TableExistsAsync <T>()
        {
            var tableModelDef = typeof(T).GetModelDefinition();

            return(await Task.Run(() =>
                                  DialectProvider.DoesTableExist(this,
                                                                 tableModelDef.Alias ?? tableModelDef.ModelName,
                                                                 tableModelDef.Schema)));
        }
 /// <summary>
 /// Execute a query to detect if a table already exists
 /// </summary>
 /// <param name="tableName">the table name</param>
 /// <param name="schema">the schema name</param>
 /// <returns></returns>
 public async Task <bool> TableExistsAsync(string tableName, string schema = null)
 {
     return(await Task.Run(() =>
                           DialectProvider.DoesTableExist(this, tableName, schema)));
 }
 public bool TableExists(string tableName)
 {
     return(DialectProvider.DoesTableExist(this, tableName));
 }
        public bool TableExists <T>()
        {
            var tableModelDef = typeof(T).GetModelDefinition();

            return(DialectProvider.DoesTableExist(this, DialectProvider.NamingStrategy.GetTableName(tableModelDef.ModelName)));
        }