src/Misc/EFTools/EntityDesignModel/Mapping/PropertyMappingNameNormalizer.cs
/// <summary>
///     return a new NormalizedName for a refName that is a child of ComplexProperty
/// </summary>
/// <param name="cp"></param>
/// <param name="refName"></param>
/// <returns></returns>
return a new NormalizedName for a refName that is a child of ComplexProperty
return a new NormalizedName for a refName that is a child of ComplexProperty
private static NormalizedName NormalizePropertyNameRelativeToComplexProperty(ComplexProperty cp, string refName)
        {
            NormalizedName nn = null;
            if (cp != null)
            {
                if (cp.Name.Status == BindingStatus.Known)
                {
                    var complexType = cp.Name.Target.ComplexType.Target;
                    if (complexType != null)
                    {
                        var symbol = new Symbol(complexType.NormalizedName, refName);
                        nn = new NormalizedName(symbol, null, null, refName);
                    }
                }
            }
            return nn;
        }
private static NormalizedName NormalizePropertyNameRelativeToComplexProperty ( ComplexProperty cp , string refName ) { NormalizedName nn = null ; if ( cp != null ) { if ( cp . Name . Status == BindingStatus . Known ) { var complexType = cp . Name . Target . ComplexType . Target ; if ( complexType != null ) { var symbol = new Symbol ( complexType . NormalizedName , refName ) ; nn = new NormalizedName ( symbol , null , null , refName ) ; } } } return nn ; }
return a new NormalizedName for a refName that is a child of ComplexProperty
return a new NormalizedName for a refName that is a child of ComplexProperty
// for complex property mapping we create Symbol from corresponding ComplexType
None
cp
ComplexProperty
None
refName
string
None