What are database vendor independent ways to obtain list of tables in C# code?
I heard about three:
- ADO .NET,
IDbConnection.GetSchema("Tables")
- Linq,
new System.Data.Linq.DataContext(IDbConnection).Mapping.GetTables();
(>=3.5, System.Data.Linq.dll). - EF, Entity Framework - Get List of Tables
But this mean that somewhere there are a set of adapters for syntax of each vendor.
Is there a standard SQL syntax for this operation?
What are other ways to get list of tables in C#?