I have a class called UserProfile, that derives from an object called User.
How do I insert, update or delete data from the UserProfile?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will define
DbSetin your context. You can define set of baseUsertype and it will be able to work withUserand all derived entity types.And using this is same as any other.
Inserting:
Modifying:
Deleting: