All Projects → cyilcode → EFCoreAutoMigrator

cyilcode / EFCoreAutoMigrator

Licence: MIT License
An aggresive auto migrator tool for EF core 2.1 and above

Programming Languages

C#
18002 projects
TSQL
950 projects

Projects that are alternatives of or similar to EFCoreAutoMigrator

RestWithASP-NETUdemy
No description or website provided.
Stars: ✭ 40 (+90.48%)
Mutual labels:  entity-framework-core
reconciler
Update an entity graph in store to a given one by inserting, updating and removing the respective entities.
Stars: ✭ 24 (+14.29%)
Mutual labels:  entity-framework-core
ASP.NET-CORE-MVC-Sample-Registration-Login
C# Asp.Net Core MVC Sample Registration/Login/Email Activation Form with MsSQL Server/Entity Framework/Onion Architecture
Stars: ✭ 37 (+76.19%)
Mutual labels:  entity-framework-core
dotnet-learning
Материалы для обучения C# и ASP.NET
Stars: ✭ 62 (+195.24%)
Mutual labels:  entity-framework-core
MusicDatabase-API
This project is able to manage your songs, artists, albums and more by RESTful API. Developed with ASP.NET Core 2.0 & EF Core and used PostgreSQL Database Provider. Implemented Swagger to project.
Stars: ✭ 18 (-14.29%)
Mutual labels:  entity-framework-core
eixample
Multi-Tenant .NET 6 Architecture (Angular, Vue, React)
Stars: ✭ 61 (+190.48%)
Mutual labels:  entity-framework-core
Asmin
Asmin is .NET CORE project infrastructure, to get a quick start on the project.
Stars: ✭ 89 (+323.81%)
Mutual labels:  entity-framework-core
StoreCleanArchitecture-NET
This is a basic project to demonstrate an introduction about the implementation of Clean Architecture on .NET
Stars: ✭ 19 (-9.52%)
Mutual labels:  entity-framework-core
emplea do
Open source tech jobs portal. Made with .Net Core
Stars: ✭ 75 (+257.14%)
Mutual labels:  entity-framework-core
CodexMicroORM
An alternative to ORM's such as Entity Framework, offers light-weight database mapping to your existing CLR objects. Visit "Design Goals" on GitHub to see more rationale and guidance.
Stars: ✭ 32 (+52.38%)
Mutual labels:  entity-framework-core
run-aspnetcore-basics retired
One Solution - One Project for web application development with Asp.Net Core & EF.Core. Only one web application project which used aspnetcore components; razor pages, middlewares, dependency injection, configuration, logging. To create websites with minimum implementation of asp.net core based on HTML5, CSS, and JavaScript. You can use this boi…
Stars: ✭ 15 (-28.57%)
Mutual labels:  entity-framework-core
MonolithicArchitecture
This repository presents an approach on how to build an application using Monolithic architecture, ASP.NET Core, EntityFrameworkCore, Identity Server, CQRS, DDD
Stars: ✭ 18 (-14.29%)
Mutual labels:  entity-framework-core
Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
Stars: ✭ 46 (+119.05%)
Mutual labels:  entity-framework-core
simple-blog-back
Back-End for Simple Blog
Stars: ✭ 36 (+71.43%)
Mutual labels:  entity-framework-core
fake-survey-generator
A slightly more-than-trivial full-stack application built with DDD & CQRS concepts
Stars: ✭ 49 (+133.33%)
Mutual labels:  entity-framework-core
Katmanli-Mimari-ETicaret-Core-Mvc
Baştan Sona Core Mvc ile Kendi E-Ticaret Siteni Mimari Bakış Açısıyla Hazırla.
Stars: ✭ 78 (+271.43%)
Mutual labels:  entity-framework-core
EFCore.Cassandra
Entity Framework Core provider for Cassandra
Stars: ✭ 23 (+9.52%)
Mutual labels:  entity-framework-core
N-Tier-Architecture
This is a n-layer architecture based on Common web application architectures.
Stars: ✭ 105 (+400%)
Mutual labels:  entity-framework-core
hexagonal-clean-architecture
Clean architecture focused on microservices with .NET Core 3.1 and C# 8
Stars: ✭ 47 (+123.81%)
Mutual labels:  entity-framework-core
SQLiteEncryptionUsingEFCore
SQLite Encryption using Entity Framework Core (EFCore)
Stars: ✭ 42 (+100%)
Mutual labels:  entity-framework-core

NuGet DynamicQueryBuilder License

What ?

EFCoreAutoMigrator is an aggressive automatic migration tool that works with Entity Framework Core 2.1 and above. It basically recreates your database tables whenever it detects a change in your database schema.

Why ?

EFCoreAutoMigrator was built for speeding up the development stages of your applications. Since you don't need to deal with database migrations after you install this tool;

  • No migration files generated.
  • No more conflicts with your branch and your teammates.
  • Fixing database schema errors is a lot easier.

How ?

EFCoreAutoMigrator creates and stores a hash in your FileSystem or Database to check if you have any changes on your current schema by utilizing GenerateCreateScript function of EFCore 2.1+.

Installation

It is quite simple to install.

You can install EFCoreAutoMigrator from NuGet with the command below:

Install-Package EFCoreAutoMigrator

On ASP.NET Core Project

Program.cs

public static class Program
    {
        public static void Main(string[] args)
        {
            IWebHost server = BuildWebHost(args);
            var env = server.Services.GetService(typeof(IHostingEnvironment)) as IHostingEnvironment;

            // I would highly suggest you to not to use this tool in your production environment.
            // Since it will vaporize your whole database which you probably don't want :)
            if (!env.IsProduction())
            {
                using (IServiceScope serviceScope = server.Services.GetService<IServiceScopeFactory>().CreateScope())
                {
                    // Make sure that your DbContext is registered in your DI container.
                    MyDbContext myDbContext = serviceScope.ServiceProvider.GetService<MyDbContext>();
                    // Always protect your production/secure databases.
                    var secureDataSources = new SecureDataSource[] 
                    {
                        new SecureDataSource 
                        {
                            ServerAddress = "mysecure.database.net",
                            DatabaseName = "my-production-database"
                        }
                    };
                    
                    new AutoMigrator(myDbContext, secureDataSources).EnableAutoMigration(
                        false, MigrationModelHashStorageMode.Database, () =>
                    {
                        // Seed function here if you need
                    });
                }
            }

            server.Run();
        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .Build();
    }

TODO:

* Tests
* Further documentation
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].