internal EntityPropertyElement(IMetadataElementIdentity identity, IStructuralModelTypeElement typeElement, IEnumerable <IMetadataFeature> features)
     : base(identity, features)
 {
     if (typeElement == null)
     {
         throw new ArgumentNullException("typeElement");
     }
     _typeElement = typeElement;
 }
 public EntityPropertyElementBuilder OfType <T>(T typeElement) where T : IStructuralModelTypeElement
 {
     _typeElement   = typeElement;
     _typeReference = TypeElement.Identity.Id;
     return(this);
 }
 public EntityPropertyElementBuilder OfType(ElementaryTypeKind elementaryTypeKind)
 {
     _typeElement   = PrimitiveTypeElement.OfKind(elementaryTypeKind);
     _typeReference = TypeElement.Identity.Id;
     return(this);
 }