N0mlss
N0mlss
CC#
Created by N0mlss on 3/9/2024 in #help
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
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
No description
123 replies
CC#
Created by N0mlss on 9/20/2023 in #help
❔ Blazor: How to have a component inside a component?
No description
12 replies
CC#
Created by N0mlss on 9/19/2023 in #help
✅ Cant access base parameter in children partial class
No description
79 replies
CC#
Created by N0mlss on 2/16/2023 in #help
❔ 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
CC#
Created by N0mlss on 12/6/2022 in #help
❔ 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
CC#
Created by N0mlss on 11/21/2022 in #help
❔ 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
CC#
Created by N0mlss on 11/11/2022 in #help
❔ How can I check if any element of a list is in another list?
6 replies