DEV Community

Discussion on: How to get the actual table name from DbSet in EntityFramework Core 2.0.

Collapse
 
bastijan profile image
Sasa Jovanovic

Actually, you already know a table name :)

// var tableName = myContext.FooBars.GetTableName();
// ~~~~~~~~~~~~~~
// tableName; // -> "FooBars"