In EF 6.1 the mapping API was introduced where we could finally get access to table names and column names. Getting the table name is a very nice change in EF Core, but I ha
This version doesn't assume SqlServer and can work as well with Npgsql provider as long as data store is relational.
SqlServer
Npgsql
var columnNames = dbContext.Model.FindEntityType(typeof(T)) .GetProperties().Select(x => x.Relational().ColumnName);