Skip to content

Commit

Permalink
Don't generate multiple Text properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Feb 5, 2015
1 parent 1aa4900 commit e44ebbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e44ebbd

Please sign in to comment.