コード例 #1
0
        public void ClrTypeMappingValueAnnotationClassTypeRecursiveTest()
        {
            var edmModel = this.GetParserResult(ClrTypeMappingTestModelBuilder.ValueAnnotationClassTypeRecursiveTest());

            var valueAnnotation = this.GetValueAnnotations(edmModel, edmModel.FindType("NS1.Person"), "RecursiveProperty").Single();

            this.ValidateClrObjectConverter(valueAnnotation, new RecursiveProperty()
            {
                X = 1, Y = 2, Origin = new RecursiveProperty()
                {
                    X = 3, Y = 4
                }
            });
        }