src/Misc/EFTools/EntityDesign/CodeGeneration/CodeHelper.cs
/// <summary>
/// Gets the type of the specified navigation property.
/// </summary>
/// <param name="navigationProperty">The navigation property.</param>
/// <returns>The type.</returns>
Gets the type of the specified navigation property.
Gets the type of the specified navigation property .
public string Type(NavigationProperty navigationProperty)
        {
            if (navigationProperty == null)
            {
                throw new ArgumentNullException("navigationProperty");
            }
            var toEndMember = navigationProperty.ToEndMember;
            var type = Identifier(toEndMember.GetEntityType().Name);
            if (toEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many)
            {
                return "ICollection" + TypeArgument(type);
            }
            return type;
        }
public string Type ( NavigationProperty navigationProperty ) { if ( navigationProperty == null ) { throw new ArgumentNullException ( " " ) ; } var toEndMember = navigationProperty . ToEndMember ; var type = Identifier ( toEndMember . GetEntityType ( ) . Name ) ; if ( toEndMember . RelationshipMultiplicity == RelationshipMultiplicity . Many ) { return " " + TypeArgument ( type ) ; } return type ; }
Gets the type of the specified navigation property.
Gets the type of the specified navigation property .
None
navigationProperty
NavigationProperty
The navigation property.
The navigation property .