FluentMigrator
EfCore.TestSupport
Our great sponsors
FluentMigrator | EfCore.TestSupport | |
---|---|---|
9 | 2 | |
3,120 | 347 | |
0.9% | - | |
8.8 | 0.0 | |
10 days ago | 19 days ago | |
C# | C# | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
FluentMigrator
-
Entity Framework Core Owned Entity
Fluent Migrator
- Fluentmigrator 5.0.0 released
- How do you deal with merging Entity Framework feature migrations into your main branch?
-
Setup local MS SQL docker container
Personally I prefer to use FluentMigrator to schema modification data load.
- Dot net libraries/tools that are usefull in many projects
- Is it sensible to run EF migrations at startup?
-
Ask HN: How do you handle CI/CD for databases
We use Fluent Migrator for out C# based applications.
https://fluentmigrator.github.io/
EfCore.TestSupport
-
Repository pattern is a pain. Are there better ways?
If you have complex ef queries / functions mocking repository doesn't really make Sense. Your core application live in entity framework, you must test it. Author of best book about entity framework wrote lot blog posts about it (https://www.thereformedprogrammer.net/new-features-for-unit-testing-your-entity-framework-core-5-code/) maybe you can write extension methods on queryable and test it?
-
Is it sensible to run EF migrations at startup?
I think it would be fine for a small app. For larger apps: we currently use DbUp to run SQL scripts on deploy (in a seperate job, before the web app deploys) + https://github.com/JonPSmith/EfCore.TestSupport to run a unit test to ensure the EF Core schema matches the database to prevent errors at runtime.
What are some alternatives?
Entity Framework - EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
DbUp - DbUp is a .NET library that helps you to deploy changes to SQL Server databases. It tracks which SQL scripts have been run already, and runs the change scripts that are needed to get your database up to date.
roundhouse - RoundhousE is a Database Migration Utility for .NET using sql files and versioning based on source control
Dapper - Dapper - a simple object mapper for .Net [Moved to: https://github.com/DapperLib/Dapper]
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
MongoDB Repository pattern implementation
liquibase - Main Liquibase Source
Fluent NHibernate - Fluent NHibernate!
LINQ to DB - Linq to database provider.
MongoDB.Entities - A data access library for MongoDB with an elegant api, LINQ support and built-in entity relationship management
Flyway - Flyway by Redgate • Database Migrations Made Easy.