❔ namespace 'Models' does not exist in the namespace 'BlazorBookGroup'

It is a subfolder though so what's the issue?
5 Replies
sea cryptid
sea cryptidOP2y ago
Angius
Angius2y ago
Items inside of Models folder can be in a Unga.Bunga.Binga namespace Directories != namespaces
sea cryptid
sea cryptidOP2y ago
OK but the namescpae was BlazorBookGroup.Models Looks like it's working now that I put it in the Data folder. But not sure why it wouldn't work in the Models folder. But I shouldn't have a Models folder in a Blazor project right? It should just all go in the Data folder?
Henkypenky
Henkypenky2y ago
for reference you can add the usings in _Imports.razor and just use the types like normal, you don't need to use fully quallified namespaces
Post examplePost = new();
Post examplePost = new();
is just fine, however, naming things better helps pepelaff
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server