I have a class that has an enum that it’s values are ASCII codes.
I want to save in the DB the char value not the ASCII code, How can I achieve that?
I have a class that has an enum that it’s values are ASCII codes.
Share
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 can implement your own type conversion using
IUserTypeinterface. Example how to do that can be found here or here.Once you do that, you have to tell your fluent mapper to use this type for given property: