public AttributeMetadataContext(CdsAttribute attribute, string publisherPrefix, AttributeMetadata existingMetadata = null) { Strategies.Add(CdsAttributeDataType.Boolean, new BooleanAttributeMetadataType(attribute, publisherPrefix, existingMetadata)); Strategies.Add(CdsAttributeDataType.DateTime, new DateTimeAttributeMetadataType(attribute, publisherPrefix, existingMetadata)); Strategies.Add(CdsAttributeDataType.Integer, new IntegerAttributeMetadataType(attribute, publisherPrefix, existingMetadata)); Strategies.Add(CdsAttributeDataType.Lookup, new LookupAttributeMetadataType(attribute, publisherPrefix, existingMetadata)); Strategies.Add(CdsAttributeDataType.Memo, new MemoAttributeMetadataType(attribute, publisherPrefix, existingMetadata)); Strategies.Add(CdsAttributeDataType.Picklist, new PicklistAttributeMetadataType(attribute, publisherPrefix, existingMetadata)); Strategies.Add(CdsAttributeDataType.String, new StringAttributeMetadataType(attribute, publisherPrefix, existingMetadata)); }
public LookupAttributeMetadataType(CdsAttribute attribute, string publisherPrefix, AttributeMetadata existingMetadata = null) { _attribute = attribute; _publisherPrefix = publisherPrefix; _existingMetadata = existingMetadata; }