public bool CanDecorateWithContract(bool templateFlag, IPropertyBase property, out string decoratorAttribute) { decoratorAttribute = null; bool result = CanDecorateWithContract(templateFlag, property.DataMember); if (result && property.GetRealOwner().TypeKind != PersistentTypeKind.Interface) { string[] typeAttributes = CreateTypeAttributesCommon(property.DataMember); decoratorAttribute = typeAttributes == null || typeAttributes.Length == 0 ? ATTRIBUTE_DATAMEMBER : string.Format("[{0}]", typeAttributes[0]); //decoratorAttribute = ATTRIBUTE_DATAMEMBER; } return(result); }
public IPropertiesBuilder PropertiesBuilderForTypeByOwner(IPropertyBase property) { IPersistentType realOwner = property.GetRealOwner(); return(PropertiesBuilderForType(realOwner)); }