© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
85 replies
{sus}

✅ Migration-independent Database Seeding

Curious if EF has some sort of independent database seeding potential? I am kinda hoping to see a similar functionality to Laravel's Database Seeder where you can write the seed in a file which you can run at any time, regardless of whether or not your migrations are already ran. I find the
HasData
HasData
fucntiuonality inherently counterproductive as I don't want to re-run all migrations over and over just so I can work with my seed data.

Laravel Seeding: https://laravel.com/docs/11.x/seeding
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Laravel - The PHP Framework For Web Artisans
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Data seeding database
C#CC# / help
3y ago
Seeding Data Into Database
C#CC# / help
2y ago
❔ Local Database to Server Database migration
C#CC# / help
4y ago
.NET 9 - EF Core + Aspire - Database seeding
C#CC# / help
9mo ago