如何取得和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;

posted @ 2019-03-29 11:34  程序猿Grady  阅读(1090)  评论(0编辑  收藏  举报