Closed punkouter2021 closed 8 years ago
@divega this issue is a bit old, but does it look familiar to you? The current code is a tiny bit different: https://github.com/aspnet/MusicStore/blob/dev/src/MusicStore/Models/SampleData.cs#L26
Was there any known issue on SQL Azure with certain EF operations? (E.g. Database.EnsureCreatedAsync()
.)
Yes, it looks familiar. This exception came up a long time ago when we were using sequences by default for auto-increment columns in SQL Server which is a feature that at least at that time wasn't supported in Azure SQL Database. We have swapped to use IDENTITY
since then so it shouldn't be an issue anymore.
Closing as per the comment above the default behavior in EF should now work with Azure SQL DB but feel free to reopen or create a new issue if you hit the issue again.
Anyone else get this ? Is there a workaround ?