N0mlss
Appsettings.json across projet
I would like to know if it was possible to have a global appsettings.json across all my project inside the same solution,
I have a project that consist of a website and a webadmin. Both are connected to the database. I have to specify the connection string in both appsettings.json and other variable like email settings.
If there is a change to make, i have to make the change in both appsettings.
I would like to know if it was possible to have something like a global appsettings across the two projects, and then only set project specific variable in the project appsettings.
Thank you for your answers!!
1 replies
❔ SQL: Shared data. One or two table
Hey, im currently creating a database and I need to store the information about vehicles.
The vehicles can be bought or rented. Obviously depending on the type of financing, one will need some fields while the other would need other fields.
That being said, most information are the same no matter the financing type such as the model, the year etc.
My question is: Should I create two table to store the information to avoid having row with empty data in my table or should i not care and just do one table?
PS: For bought vehicles we are talking about 10 fields more or less and rented one about 20 fields
14 replies
❔ Translate entity framwork code to SQL
I have some database change and I need to create a script to run it on the live database eventually.
I need to update a table but i have no idea how to do it in SQL so i made the code in c# to explain the logic, but it need to be in SQL for the script
18 replies
❔ Should I separate the add and edit page in a web app?
Ive always combined the add and edit page since the html is the same in both page. Depending if i had a query string or not, i would call the edit or create function on the save button click of the page
Someone last year told me that since create and edit are two different business logic, it should be two different page.
Im now currently following this guy formation on blazor and he is separating the add and edit page. Here is the link to the udemy course: https://www.udemy.com/share/106UZ03@Tu1_uv6DDidhaejhbMirJ6450fEFQYgK2MlulExVKOZBkW1H-b5oEsXh-0kluNCs/
My question is, should the add and edit page be separated?
If so, isnt it bad since if we make a change, we need to duplicate the change in both page?
And the page is the same exact html and css, so we need to duplicate it as well?
Please enlighten me on this 😂😭
10 replies