Minor change. Reading local variable instead of calling property twice.
#2165: Updated unittest to check that mapping attribute for main partial class for typedjson codebehind is set correctly.
#2165: Setting mapping attribute for main codebehind partial class if not set by user to allow codebehind to be mapped correctly.
Merge branch 'issue/2165' into develop