Best approach multidomain .NET Core application

.net-core asp.net-core dbcontext entity-framework-core razor

Accepted Answer

I've found a partial answer after many hours of study and trial and error. First, I divided the project into aRazor Class Library (RCL) using the shared pages, models, classes, tag helpers, extensions, styles, and so on. the evenDbContext , therein:). Additionally, my "domain-specific overrides" are in the other project. It works quite well.

Guide

  1. I used this to generate my RCL: develop reusable UI (of course...)

  2. I used this to register the interfaces and the DbContext: How to introduce services

  3. And I used this to embed "static" files (js/css): Static Resources Included

The last steps are to upload the various domain-projects to the domains and register the dlls of my shared RCL on the webserver. Although I haven't tried it yet, it appears rather simple.

Although this solution meets my needs, it may not be the ideal one. Feel free to share further solutions!

0
1/10/2019 12:54:58 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow