To save the photo path in the database, after capturing the photo with MediaPicker, use photo.FullPath to get the local file path. Store this string in a property bound to your ViewModel (e.g., PhotoPath). Then in your AddAsync command, assign this path to the Photoprofile field and save the entity using SaveChanges(). Ensure Photoprofile is of type string.