-
Notifications
You must be signed in to change notification settings - Fork 102
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
How to: VS2017 project with Azure SQL Server #34
Comments
Hi Eric according to this Azure SQL Server can be used with EF Core. This means that you just need to change the connection string in the app settings. |
Hi Damien, Thanks for your quick reply. Well it was not so easy, To contribute , I summarized what was required to get the sample from your tutorial working for a MS SQL Server database: Migration Steps from SQLite Server to MS SQL Server setup:1. In Startup.cs comment out (or removed if unused) the SQLite related code statements and add that:
Note: Remove that action delegate 2. Attempt an initial EF migration I like the Package Manager Console but that can be done from command line , too. PM> 3. Get rid of all EF SQLite package (if not used!) 4. Add that EF MS SQL Server Runtime and Designer/Tools packages: 5. Try again to start initial Migration PM> Now it succeeds. 6. Verify that 3 Tables are created in your MS SQL Server database |
@ericbrunner excellent, thanks, I'll add this to the docs if it's ok with you. Greetings Damien |
@damienbod Sure. I put that sample at https://github.com/ericbrunner/AspNetCoreLocalizationWithMSSQL The connectionstring is templated:
I verified that it is working with an Azure MS SQL Server database. Greetings Eric |
Hi @ericbrunner want to reopen this, will close it when I have included it in the docs. Will use your github name to reference you, unless you want else. |
Hi,
Could you point me to a sample that uses an Azure SQL Server or show me the difference to the SQLite example from your tutorial?
Thanks,
Eric
The text was updated successfully, but these errors were encountered: