src/Misc/EFTools/EntityDesign/CodeGeneration/CodeHelper.cs
/// <summary>
/// Gets the type of the specified property.
/// </summary>
/// <param name="property">The property.</param>
/// <returns>The type.</returns>
Gets the type of the specified property.
Gets the type of the specified property .
public string Type(EdmProperty property)
        {
            if (property == null)
            {
                throw new ArgumentNullException("property");
            }
            var clrType = property.PrimitiveType.ClrEquivalentType;
            var type = StripQualifiers(CodeProvider.GetTypeOutput(new CodeTypeReference(clrType)));
            if (clrType.IsValueType && property.Nullable)
            {
                return type + "?";
            }
            return type;
        }
public string Type ( EdmProperty property ) { if ( property == null ) { throw new ArgumentNullException ( " " ) ; } var clrType = property . PrimitiveType . ClrEquivalentType ; var type = StripQualifiers ( CodeProvider . GetTypeOutput ( new CodeTypeReference ( clrType ) ) ) ; if ( clrType . IsValueType && property . Nullable ) { return type + " " ; } return type ; }
Gets the type of the specified property.
Gets the type of the specified property .
None
property
EdmProperty
None