Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : efcore.automaticmigrations.nettopologysuite

Enable Automatic Migrations for Entity Framework Core NetTopologySuite for the Microsoft SQL Server databases. How to use: Enable mapping to spatial types via NTS options.UseSqlServer( @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Database", x =&gt; x.UseNetTopologySuite()); // Migrations Options public class DbMigrationsOptions { /// <summary> /// Allow auto migration with data lost /// </summary> public bool AutomaticMigrationDataLossAllowed { get; set; } = false; /// <summary> /// Enable to execute auto migration /// </summary> public bool AutomaticMigrationsEnabled { get; set; } = true; /// <summary> /// Remove all tables from database and recreate based on model snapshot. All data would be deleted /// </summary> public bool ResetDatabaseSchema { get; set; } = false; } Option 1 (using method): MigrateDatabaseToLatestVersion.Execute(context); MigrateDatabaseToLatestVersion.Execute(context, new DbMigrationsOptions { ResetDatabaseSchema = true }); Option 2 (using context extension) context.MigrateToLatestVersion(); context.MigrateToLatestVersion(new DbMigrationsOptions { ResetDatabaseSchema = true });

Registry - JSON
purl: pkg:nuget/efcore.automaticmigrations.nettopologysuite
Keywords: Automatic, Migrations, Entity, Framework, Core, NetTopologySuite, Auto, entity-framework-core, EF, Data, O/RM, EntityFramework, EntityFrameworkCore, EFCore, SQL, Server
License: MIT
Latest release: about 1 year ago
First release: over 2 years ago
Downloads: 6,120 total
Last synced: about 12 hours ago

    Loading...
    Readme
    Loading...