diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index 7a72a269..659a88aa 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -361,7 +361,8 @@ public override CodeTypeDeclaration Generate() Documentation = { new() { Language = English, Text = "Gets or sets a value uniquely identifying this entity." }, new() { Language = German, Text = "Ruft einen Wert ab, der diese Entität eindeutig identifiziert, oder legt diesen fest." } - } + }, + IsRequired = true }; Properties.Insert(0, keyProperty); }