Beispiel #1
0
        public XElement Serialize(PropertyDefinition propertyDefinition, IRdbmsPersistenceModelProvider persistenceModelProvider)
        {
            ArgumentUtility.CheckNotNull("propertyDefinition", propertyDefinition);
            ArgumentUtility.CheckNotNull("persistenceModelProvider", persistenceModelProvider);

            _enumSerializer.CollectPropertyType(propertyDefinition);
            return(_propertySerializer.Serialize(propertyDefinition, persistenceModelProvider));
        }
Beispiel #2
0
        public void CollectPropertyType(PropertyDefinition propertyDefinition)
        {
            ArgumentUtility.CheckNotNull("propertyDefinition", propertyDefinition);

            var propertyType = propertyDefinition.PropertyType;

            if (ExtensibleEnumUtility.IsExtensibleEnumType(propertyType))
            {
                _enumTypes.Add(propertyType);
            }
            else
            {
                _enumSerializer.CollectPropertyType(propertyDefinition);
            }
        }