© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
KaLu

❔ A quick question

In this code i initialize a object.
UpdatedByUser = request.User.VacationApprovalManager,
UpdatedByUserId = request.User.VacationApprovalManager.Id,
I just want to know, do I need to use the first line of code or is the adding of the Id of the VacationApprovalManager enough for EntityFramework to figure out the updated user? basically do i need the first line of code ( UpdatedByUser = request.User.VacationApprovalManager)?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Quick sort question
C#CC# / help
3y ago
✅ quick recursion question
C#CC# / help
3y ago
❔ Quick Question for a quiz game
C#CC# / help
3y ago