Ejemplo n.º 1
0
 public override bool TableExists(string schemaName, string tableName)
 {
     return(Exists("select count(*) from sqlite_master where name={0} and type='table'", _quoter.QuoteValue(tableName)));
 }
Ejemplo n.º 2
0
 public override bool TableExists(string schemaName, string tableName)
 {
     return(Exists("select count(*) from {1}sqlite_master where name={0} and type='table'",
                   _quoter.QuoteValue(tableName),
                   !string.IsNullOrWhiteSpace(schemaName) ? _quoter.QuoteValue(schemaName) + "." : string.Empty));
 }