Nullverweise warnings bereinigt
This commit is contained in:
@@ -24,7 +24,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "parent", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "parent")]
|
||||
public ModelCategory Parent { get; set; }
|
||||
public ModelCategory? Parent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -32,7 +32,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -40,7 +40,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "objectType", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "objectType")]
|
||||
public string ObjectType { get; set; }
|
||||
public string ObjectType { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -56,7 +56,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "code", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "code")]
|
||||
public string Code { get; set; }
|
||||
public string Code { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -64,7 +64,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "color", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "color")]
|
||||
public string Color { get; set; }
|
||||
public string Color { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -72,7 +72,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "sevClient")]
|
||||
public Object SevClient { get; set; }
|
||||
public Object? SevClient { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -80,7 +80,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "postingAccount", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "postingAccount")]
|
||||
public string PostingAccount { get; set; }
|
||||
public string PostingAccount { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -88,7 +88,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "type", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
public string Type { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -96,7 +96,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "translationCode", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "translationCode")]
|
||||
public string TranslationCode { get; set; }
|
||||
public string TranslationCode { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@@ -104,7 +104,7 @@ namespace ConsoleApp3.DataContracts
|
||||
/// <value></value>
|
||||
[DataMember(Name = "entryType", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "entryType")]
|
||||
public ModelEntryType EntryType { get; set; }
|
||||
public ModelEntryType? EntryType { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user