如何取得和EF core mapped entity的表名

Use package:Microsoft.EntityFrameworkCore.Relational

var mapping=dbContext.Model.FindEntityType(typeof(YourEntity)).Relational();

var schema=mapping.Schema;

var tableName=mapping.TableName;

原文地址:https://www.cnblogs.com/grady1028/p/10620236.html