BExIS.Xml.Helpers.Mapping.XmlSchemaManager.createMetadataCompoundAttribute C# (CSharp) Метод

createMetadataCompoundAttribute() приватный Метод

private createMetadataCompoundAttribute ( XmlSchemaComplexType complexType ) : MetadataCompoundAttribute
complexType System.Xml.Schema.XmlSchemaComplexType
Результат BExIS.Dlm.Entities.MetadataStructure.MetadataCompoundAttribute
        private MetadataCompoundAttribute createMetadataCompoundAttribute(XmlSchemaComplexType complexType)
        {
            // create a compoundAttribute
            MetadataCompoundAttribute mca = getExistingMetadataCompoundAttribute(complexType.Name);// = metadataAttributeManager.MetadataCompoundAttributeRepo.Get(p => p.Name == complexType.Name).FirstOrDefault();

            DataType dt1 = dataTypeManager.Repo.Get(p => p.Name.ToLower().Equals("string")).FirstOrDefault();
            if (dt1 == null)
            {
                dt1 = dataTypeManager.Create("String", "A test String", System.TypeCode.String);
            }

            if (mca == null)
            {
                mca = new MetadataCompoundAttribute
                {
                    ShortName = complexType.Name,
                    Name = complexType.Name,
                    Description = GetDescription(complexType.Annotation),
                    DataType = dt1
                };
            }

            return mca;
        }

Same methods

XmlSchemaManager::createMetadataCompoundAttribute ( XmlSchemaElement element ) : MetadataCompoundAttribute