C
C#9mo ago
Sygmond

✅ Missing reference for one entity but not for another

I have two entities: Cat, Dog in Database.Entities project. If I reference this project via using Database.Entities I can type new Cat() and use it but I can't type new Dog() and it gives error that missing reference and I have to use new Database.Entities.Dog() What in the world is going on? Thank you!
8 Replies
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Sygmond
SygmondOP9mo ago
the namespace is the same in both files and under the same folder
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Sygmond
SygmondOP9mo ago
aha
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Sygmond
SygmondOP9mo ago
looking for that now maybe I spot something. Sharing the code is kind of impossible because is a really big project @TeBeCo yep, thank you! That was. Some folders ware in the singular form, i.e. Item instead of Items and the entity was Item too... and the namespace of some classes ware containing the word Item and make conflict with the entity Item
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX9mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server