Skip to content

Commit

Permalink
Generate PropertyChanged members only if they're not already inherited
Browse files Browse the repository at this point in the history
  • Loading branch information
mganss committed Apr 11, 2020
1 parent a04312a commit a976d91
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 @@ -285,7 +285,7 @@ public override CodeTypeDeclaration Generate()
if (IsAbstract)
classDeclaration.TypeAttributes |= System.Reflection.TypeAttributes.Abstract;

if (Configuration.EnableDataBinding)
if (Configuration.EnableDataBinding && !(BaseClass is ClassModel))
{
var propertyChangedEvent = new CodeMemberEvent()
{
Expand Down

0 comments on commit a976d91

Please sign in to comment.