/// <summary>
        /// This protected method sets the mapping attributes for the content.
        /// </summary>
        protected override void SetAttributes()
        {
            base.SetAttributes();

            attrDefaultData = AH.GetAttribute<XimuraDataContentDefaultAttribute>(GetType());

            attrSchemaPrimary = AH.GetAttribute<XimuraDataContentSchemaAttribute>(GetType());

            attrsSchemaReference = AH.GetAttributes<XimuraDataContentSchemaReferenceAttribute>(GetType());
        }
Exemplo n.º 2
0
        /// <summary>
        /// This class is used to resolve the system resources.
        /// </summary>
        private XmlContentXsdResolver(Type objectType)
            : base()
        {
            mObjectType = objectType;

            attrSchemaPrimary =
                AH.GetAttribute<XimuraDataContentSchemaAttribute>(objectType);

            attrsSchemaReference =
                AH.GetAttributes<XimuraDataContentSchemaReferenceAttribute>(objectType);
        }