FoxySnake
Foreign Key between Models with ef
what I'm trying to do is to link the table Package to the table UserPackages like that, when I take my User, I can retrieve also their packages.
Like this
User user = await _userRepository.Query().Include(x => x.Packages).ThenInclude(x => x.Package);
16 replies
❔ Can't get Cookies Response from .net api
Cause I have an angular application for the front of my website and the cookie give by Identity can't be catch with javascript so I need to catch it after the successfull login and add him to the response to store it on my localstorage. The principal reason I wan't to do that is to make the website remeber the user connected after his closure by storing it on the localstorage. Like that I when the user has check the "Remember Me", the website already know the user even after his closure until the user disconnect by himself
11 replies