I am using EF Core in .Net 6 App, The Project is almost Complete, But Now I want to code for Backup and Restore?
Here is code for EF, But it is not work for EF Core. code.
CodePudding user response:
Backing up a database is not within the scope of an ORM. The code you linked to does not rely on Entity Framework it uses SQL Server Management Object (SMO). SMO requires .NET Framework 4.0 or .NET Core 2.0 to run. You can install the package from Nuget.