❔ 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)?
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)?
