Quantcast
Channel: dbschemareader Discussions Rss Feed
Viewing all articles
Browse latest Browse all 166

New Post: Column.DataType not populated

$
0
0
Hi,

I used the DatabaseReader to read the list of tables in a database:

var dbReader = new DatabaseReader(connectionString, providername);
var tables = dbReader.AllTables();

I want to iterate through the columns to find the NetType of each.

var table = tables[0];
var column = table.Columns[0];
var typeName = column.DataType.NetDataTypeCSharpName;

column.DataType was not populated. Did I miss something?

On a separate note, I created some T4 templates to generate POCO's. Would you like see whether it's something you'd like to add to the code base?

Thanks,
Candy

Viewing all articles
Browse latest Browse all 166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>