Skip to content

Commit 664f587

Browse files
mmainermmainer
authored andcommitted
Added TimeOfDay and Duration to the list of edm types that shouldn't be nullable.
1 parent cdd7ef9 commit 664f587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphODataTemplateWriter/CodeHelpers/CSharp/TypeHelperCSharp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static bool IsTypeNullable(this OdcmProperty property)
158158
public static bool IsTypeNullable(this OdcmType type)
159159
{
160160
var t = type.GetTypeString();
161-
return type is OdcmClass || t == "Date" || t == "Stream" || t == "string" || t == "byte[]";
161+
return type is OdcmClass || t == "Date" || t == "Stream" || t == "string" || t == "byte[]" || t == "TimeOfDay" || t == "Duration";
162162
}
163163

164164
public static bool IsByteArray(this OdcmProperty property)

0 commit comments

Comments
 (0)