public XElement Serialize(PropertyDefinition propertyDefinition, IRdbmsPersistenceModelProvider persistenceModelProvider) { ArgumentUtility.CheckNotNull("propertyDefinition", propertyDefinition); ArgumentUtility.CheckNotNull("persistenceModelProvider", persistenceModelProvider); _enumSerializer.CollectPropertyType(propertyDefinition); return(_propertySerializer.Serialize(propertyDefinition, persistenceModelProvider)); }
public void CollectPropertyType(PropertyDefinition propertyDefinition) { ArgumentUtility.CheckNotNull("propertyDefinition", propertyDefinition); var propertyType = propertyDefinition.PropertyType; if (ExtensibleEnumUtility.IsExtensibleEnumType(propertyType)) { _enumTypes.Add(propertyType); } else { _enumSerializer.CollectPropertyType(propertyDefinition); } }