I find a bug on WriteNavigationTypeProperty

Aug 31, 2013 at 12:21 AM
Hi friends,I find a bug on this method :private void WriteNavigationTypeProperty(NavigationProperty navProperty, CodeGenerationTools code)

Now I fixed it by changing it like this:
        <#=code.SpaceAfter(NewModifier(navProperty))#><#=Accessibility.ForProperty(navProperty)#> <#=navProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many ? ("____DbSet____<" + MultiSchemaEscape(navProperty.ToEndMember.GetEntityType(), code) + ">") : MultiSchemaEscape(navProperty.ToEndMember.GetEntityType(), code)#> <#=code.Escape(navProperty)#> { get; set; }
the above DbSet can be ICollection/EntityCollection and so on.