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
时间: 2024-11-10 15:13:23