Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ForSqlServerToTable Missing from ModelBuilder #2160

Closed
clockwiseq opened this issue Aug 22, 2017 · 4 comments
Closed

ForSqlServerToTable Missing from ModelBuilder #2160

clockwiseq opened this issue Aug 22, 2017 · 4 comments
Labels

Comments

@clockwiseq
Copy link

Just created my first .NET Core 2.0 project and upon attempting to rename my tables via the .ForSqlServerToTable method, I noticed it's missing. Any idea where it may have gone? Was this excluded from 2.0? My example is below:

protected override void OnModelCreating(ModelBuilder builder)
{
    base.OnModelCreating(builder);
    builder.Entity<MyCustomEntity>().ForSqlServerToTable("MyCustomTableName");
}
@ajcvickers
Copy link
Member

@clockwiseq Usually just call .ToTable instead. See dotnet/efcore#8923 (comment) "EF Core relational metadata API changes" for more details.

@clockwiseq
Copy link
Author

Thanks for the info @ajcvickers , the only problem I have with all of this is how in the world are developers supposed to know or be informed of these breaking changes?

@joeaudette
Copy link

@clockwiseq the announcements repo readme has a link for each released version and its breaking changes
https://github.com/aspnet/Announcements

@clockwiseq
Copy link
Author

That's perfect! Thanks so much @joeaudette and @ajcvickers

@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants