Comments (1)
I have dropped support for sqlite, I can concentrate on development more, don't have to switch between sql server and sqlite to test both.
I have come back to a single dbcontext that controls every entity in the entire solution, but this time I used reflection to find and load these entities, mappings dynamically.
To add a migration, open Package Manager
-
select "src\Fan" as the Default project
Add-Migration FanSchemaV1
This will add a new folder "Fan/Migrations" with a migration named FanSchemaV1 -
ctrl + f5, the site is up running with db automatically created
-
Add a property to Post class, say public int SortOrder { get; set; }
Add-Migration FanSchemaV1_Add_SortOrder
This will add a new migration. -
ctrl + f5, site is up running with Post table have new column SortOrder added automatically in db
Any changes to db can now be down with Add-Migration and just run the app. If I want to get the sql script running behind each migration, I can run Script-Migration [-Idempotent] to review.
from fanray.
Related Issues (20)
- PageNavigation Widget
- Admin Panel Pages
- Migrate to .NET Core 3.1
- Unit test refactoring HOT 1
- Fix html <title> tag value for different navigation types
- Extract content of sample data out of Setup
- Add FUNDING.yml
- Upgrade to Vuetifyjs v2.x
- Margin adjustments in the post editor for ul and pre elements
- Image alignment is not consistent between published blog post and post in editor
- Add robots.txt and sitemap.xml
- Edit a published post sees its post date going back by one day
- Widget directly place on theme without having to live inside a widget area
- Markdown editor for posts HOT 1
- Home page is not loading css HOT 1
- Disqus Plugin
- og:image is missing
- Add GitHub Actions
- Upgrade Clarity to Bootstrap5
- Improve routes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fanray.