Bug #84423 | .net core - TableAttribute doesn't work, but .ToTable() works | ||
---|---|---|---|
Submitted: | 5 Jan 2017 17:24 | Modified: | 16 May 2017 22:34 |
Reporter: | Avi Kenjale | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 6.10.0 | OS: | Windows (any) |
Assigned to: | Gabriela Martinez Sanchez | CPU Architecture: | Any |
[5 Jan 2017 17:24]
Avi Kenjale
[9 Jan 2017 20:34]
Gabriela Martinez Sanchez
Could you please give it a try with this version https://www.nuget.org/packages/MySql.Data.EntityFrameworkCore/6.10.0-alpha ? The 7.0.6-ir31 does not support the latest EF Core version.
[9 Jan 2017 21:25]
Avi Kenjale
I tried. No luck. Still having same issue.
[9 Jan 2017 21:26]
Avi Kenjale
Exception message: Table 'world.countries' doesn't exist
[16 May 2017 22:34]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL Connector/NET 6.10.2 release, and here's the changelog entry: EF Core: Using System.ComponentModel.DataAnnotations.Schema.TableAttribute to initialize a new class instance that specified the name of an existing MySQL table produced incorrect table name and column name mappings. Thank you for the bug report.