Skip to content

Commit e44ebbd

Browse files
author
Michael Ganss
committed
Don't generate multiple Text properties
1 parent 1aa4900 commit e44ebbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XmlSchemaClassGenerator/TypeModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public override CodeTypeDeclaration Generate()
263263
foreach (var property in Properties)
264264
property.AddMembersTo(classDeclaration, EnableDataBinding);
265265

266-
if (IsMixed)
266+
if (IsMixed && (BaseClass == null || BaseClass is ClassModel))
267267
{
268268
var text = new CodeMemberField(typeof(string), "Text");
269269
// hack to generate automatic property

0 commit comments

Comments
 (0)