diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index 6c7e771a..55e7bb9e 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -263,7 +263,7 @@ public override CodeTypeDeclaration Generate() foreach (var property in Properties) property.AddMembersTo(classDeclaration, EnableDataBinding); - if (IsMixed) + if (IsMixed && (BaseClass == null || BaseClass is ClassModel)) { var text = new CodeMemberField(typeof(string), "Text"); // hack to generate automatic property