DBFirst one to one or zero
I have One Patient to One or No MedicalCard associated with him
EF Generated the following code:
Why did it create Collections? What's the use of them? I have id and single entity navigation property, but why the collections?
6 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ooof ouch owie db-first
should i rewrite it to code first?
what would be the fastest way?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Code-first is definitely easier to deal with IME
i dont really care about the data,
just want my services to keep up well with new code first entities
like, i dont use these collections anywhere anyway
so i just need to drop the db,
clear migrations,
remove redundant fields,
specify correct one to one...zero
and i hope it will work fine