- 
                Notifications
    You must be signed in to change notification settings 
- Fork 12
Add IonClobAttribute #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| /// </summary> | ||
| /// | ||
| /// <param name="encoding">Type of encoding for Clob.</param> | ||
| public IonClobSerializer(string encodingString = "Unicode") | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason IonClobSerializer takes a string rather than a Encoding is because in C#, Only primitive constants or arrays of primitives can be used as attribute parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we consider to use enum instead of string? and enum supports switch expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- There are some check warnings need to be fixed
- The specification and changelog also need to be updated
| /// </summary> | ||
| /// | ||
| /// <param name="encoding">Type of encoding for Clob.</param> | ||
| public IonClobSerializer(string encodingString = "Unicode") | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we consider to use enum instead of string? and enum supports switch expression
| * and limitations under the License. | ||
| */ | ||
|  | ||
| namespace Amazon.IonObjectMapper.Demo | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should be put into demo project
Issue #, if available:
73
Description of changes:
Add IonClobAttribute which takes an encoding so customers can specify which string properties should be converted to an Ion Clob instead of an Ion String.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.