martinjw / dbschemareader

Read database metadata (from SqlServer/Oracle/MySql/SQLite/PostgreSql/DB2 etc) into one simple model
Microsoft Public License
293 stars 128 forks source link

Question: Convert DataTable to DatabaseTable? #178

Closed swidz closed 8 months ago

swidz commented 8 months ago

Hi,

Is there any public API to convert DataTable to DatabaseTable ?

Regards, Sebastian

martinjw commented 8 months ago

Not public, but ColumnConverter is used internally https://github.com/martinjw/dbschemareader/blob/master/DatabaseSchemaReader/Conversion/ColumnConverter.cs

Originally the DataTable APIs were not in .net Core, although they introduced it a long time ago now!