@@ -13,7 +13,7 @@ This exposes a to-one relationship.
1313``` c#
1414#nullable enable
1515
16- public class TodoItem : identifiable <long >
16+ public class TodoItem : Identifiable <long >
1717{
1818 [HasOne ]
1919 public Person ? Owner { get ; set ; }
@@ -36,13 +36,13 @@ The next example defines that each car requires an engine, while an engine is op
3636``` c#
3737#nullable enable
3838
39- public sealed class Car : identifiable <long >
39+ public sealed class Car : Identifiable <long >
4040{
4141 [HasOne ]
4242 public Engine Engine { get ; set ; } = null ! ;
4343}
4444
45- public sealed class Engine : identifiable <long >
45+ public sealed class Engine : Identifiable <long >
4646{
4747 [HasOne ]
4848 public Car ? Car { get ; set ; }
@@ -123,13 +123,13 @@ The next example defines that each car optionally has an engine, while an engine
123123``` c#
124124#nullable enable
125125
126- public sealed class Car : identifiable <long >
126+ public sealed class Car : Identifiable <long >
127127{
128128 [HasOne ]
129129 public Engine ? Engine { get ; set ; }
130130}
131131
132- public sealed class Engine : identifiable <long >
132+ public sealed class Engine : Identifiable <long >
133133{
134134 [HasOne ]
135135 public Car ? Car { get ; set ; }
@@ -204,7 +204,7 @@ CREATE UNIQUE INDEX "IX_Cars_EngineId" ON "Cars" ("EngineId");
204204This exposes a to-many relationship.
205205
206206``` c#
207- public class Person : identifiable <long >
207+ public class Person : Identifiable <long >
208208{
209209 [HasMany ]
210210 public ICollection <TodoItem > TodoItems { get ; set ; } = new HashSet <TodoItem >();
@@ -236,7 +236,7 @@ However, under the covers it would use the join type and Entity Framework Core's
236236``` c#
237237#nullable disable
238238
239- public class Article : identifiable <long >
239+ public class Article : Identifiable <long >
240240{
241241 // tells Entity Framework Core to ignore this property
242242 [NotMapped ]
@@ -261,7 +261,7 @@ There are two ways the exposed relationship name is determined:
2612612 . Individually using the attribute's constructor.
262262``` c#
263263#nullable enable
264- public class TodoItem : identifiable <long >
264+ public class TodoItem : Identifiable <long >
265265{
266266 [HasOne (PublicName = " item-owner" )]
267267 public Person Owner { get ; set ; } = null ! ;
@@ -294,7 +294,7 @@ Otherwise, the relationship (and its related resources, when included) are silen
294294``` c#
295295#nullable enable
296296
297- public class User : identifiable <long >
297+ public class User : Identifiable <long >
298298{
299299 [HasOne (Capabilities = ~ HasOneCapabilities .AllowView )]
300300 public LoginAccount Account { get ; set ; } = null ! ;
@@ -308,7 +308,7 @@ Indicates whether the relationship can be included. When not allowed and used in
308308``` c#
309309#nullable enable
310310
311- public class User : identifiable <long >
311+ public class User : Identifiable <long >
312312{
313313 [HasMany (Capabilities = ~ HasManyCapabilities .AllowInclude )]
314314 public ISet <Group > Groups { get ; set ; } = new HashSet <Group >();
@@ -322,7 +322,7 @@ For to-many relationships only. Indicates whether it can be used in the `count()
322322``` c#
323323#nullable enable
324324
325- public class User : identifiable <long >
325+ public class User : Identifiable <long >
326326{
327327 [HasMany (Capabilities = HasManyCapabilities .AllowFilter )]
328328 public ISet <Group > Groups { get ; set ; } = new HashSet <Group >();
@@ -336,7 +336,7 @@ Indicates whether POST and PATCH requests can replace the relationship. When sen
336336``` c#
337337#nullable enable
338338
339- public class User : identifiable <long >
339+ public class User : Identifiable <long >
340340{
341341 [HasOne (Capabilities = ~ HasOneCapabilities .AllowSet )]
342342 public LoginAccount Account { get ; set ; } = null ! ;
@@ -350,7 +350,7 @@ For to-many relationships only. Indicates whether POST requests can add resource
350350``` c#
351351#nullable enable
352352
353- public class User : identifiable <long >
353+ public class User : Identifiable <long >
354354{
355355 [HasMany (Capabilities = ~ HasManyCapabilities .AllowAdd )]
356356 public ISet <Group > Groups { get ; set ; } = new HashSet <Group >();
@@ -364,7 +364,7 @@ For to-many relationships only. Indicates whether DELETE requests can remove res
364364``` c#
365365#nullable enable
366366
367- public class User : identifiable <long >
367+ public class User : Identifiable <long >
368368{
369369 [HasMany (Capabilities = ~ HasManyCapabilities .AllowRemove )]
370370 public ISet <Group > Groups { get ; set ; } = new HashSet <Group >();
@@ -380,7 +380,7 @@ Relationships can be marked to disallow including them using the `?include=` que
380380``` c#
381381#nullable enable
382382
383- public class TodoItem : identifiable <long >
383+ public class TodoItem : Identifiable <long >
384384{
385385 [HasOne (CanInclude : false )]
386386 public Person ? Owner { get ; set ; }
@@ -397,7 +397,7 @@ So for the calculated property to be evaluated correctly, the related entity mus
397397``` c#
398398#nullable enable
399399
400- public class ShippingAddress : identifiable <long >
400+ public class ShippingAddress : Identifiable <long >
401401{
402402 [Attr ]
403403 public string Street { get ; set ; } = null ! ;
0 commit comments