C#C
C#9mo ago
Qvabbyte

entity framework help needed pls.

So I have this method which is the main logic of Spinning mechanism.



And well those are the main models where I have issue, Issue is that when I assign dateEnded to session which means that this certain session is ended right, in this spin logic in one of t he first statement it checks that, if the session is ended it creates new session which I want to be saved in the database. and I am 100% sure I assign playerId to it but well the error says it can't be assigned the null and doesn't saves Here is part of debugging pics too and it txt file there is spin method.
Was this page helpful?