Skip to Content
Migrating Applications to the Cloud with Azure
book

Migrating Applications to the Cloud with Azure

by Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani
December 2019
Intermediate to advanced content levelIntermediate to advanced
494 pages
11h 41m
English
Packt Publishing
Content preview from Migrating Applications to the Cloud with Azure

Connecting using Entity Framework Core

Another option you can use to connect to your Azure SQL Database is using Entity Framework (EF). Create another .NET Core console application and install the Microsoft.EntityFrameworkCore.SqlServer package using NuGet. EF Core only supports code-first, although you can scaffold existing databases. This basically means that you'll need all your tables, views, and stored procedures in code as well. The downside is obviously that this is a bit of work, although scaffolding does this for you. The upside to this is that you'll always be able to generate your database from code. This allows you to use migrations, which incrementally build your database from code. For the first example, let's simply recreate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Migrating Applications to the Cloud

Migrating Applications to the Cloud

Steve Swoyer
Microsoft Azure: Planning, Deploying, and Managing the Cloud

Microsoft Azure: Planning, Deploying, and Managing the Cloud

Julian Soh, Marshall Copeland, Anthony Puca, Micheleen Harris

Publisher Resources

ISBN: 9781839217470Supplemental Content