Skip to content

Commit

Permalink
Nullability in example
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Mar 9, 2023
1 parent f96a2c2 commit f9a9597
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions examples/Common.IsEndOfDay-sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"isendofday.sample": {
"WorkerTimeSheet": {
"$Kind": "EntityType",
"WorkingDate": { "$Type": "Edm.Date", "$Nullable": true },
"ClockInTime": { "$Type": "Edm.TimeOfDay", "$Nullable": true },
"WorkingDate": { "$Type": "Edm.Date" },
"ClockInTime": { "$Type": "Edm.TimeOfDay" },
"ClockOutTime": { "$Type": "Edm.TimeOfDay", "$Nullable": true },
"ClockOutMidnight": { "$Type": "Edm.Boolean", "$Nullable": true }
"ClockOutMidnight": { "$Type": "Edm.Boolean" }
},
"$Annotations": {
"timezone.sample.WorkerTimeSheet/ClockOutTime": { "@Common.IsEndOfDay": { "$Path": "ClockOutMidnight" } }
Expand Down
8 changes: 4 additions & 4 deletions examples/Common.IsEndOfDay-sample.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<edmx:DataServices>
<Schema Namespace="isendofday.sample" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EntityType Name="WorkerTimeSheet">
<Property Name="WorkingDate" Type="Edm.Date" />
<Property Name="ClockInTime" Type="Edm.TimeOfDay" />
<Property Name="ClockOutTime" Type="Edm.TimeOfDay" />
<Property Name="ClockOutMidnight" Type="Edm.Boolean" />
<Property Name="WorkingDate" Type="Edm.Date" Nullable="false" />
<Property Name="ClockInTime" Type="Edm.TimeOfDay" Nullable="false" />
<Property Name="ClockOutTime" Type="Edm.TimeOfDay" Nullable="true" />
<Property Name="ClockOutMidnight" Type="Edm.Boolean" Nullable="false" />
</EntityType>
<Annotations Target="timezone.sample.WorkerTimeSheet/ClockOutTime">
<Annotation Term="Common.IsEndOfDay" Path="ClockOutMidnight" />
Expand Down

0 comments on commit f9a9597

Please sign in to comment.