public static string GetTableName <T>(this DbSet <T> dbSet) where T : class => dbSet.GetAnnotation(RelationalAnnotationNames.TableName).Value.ToString();
public static string GetSchema <T>(this DbSet <T> dbSet) where T : class => dbSet.GetAnnotation(RelationalAnnotationNames.Schema).Value.ToString();