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;
}