.NET Data Community Standup: EF Core keys and value generation

Ғылым және технология

In this episode, Arthur and members of the EF Team will explore generated property values and how value generation interacts with keys in the model. We will look at fully client-side value generation, as well as how to use identity columns, database sequences, or a hi-lo pattern for server-side generation. In addition, we’ll investigate how generated key values impact EF Core change tracking by determining if an entity will go into the `Added` state or not. And finally, if we have time, we’ll look at special considerations for TPC mapping, and customizations such as setting before and after save behaviors, and sentinel values.
⌚ Chapters:
00:00 Countdown
02:38 Welcome to .NET Data Community Standup
03:19 State of the Unicorn
07:26 On today's session - keys and value generation
07:57 Sample code - value generation
08:56 Generated property Values: When?
11:56 Generated property Values: How?
14:25 Demo
46:18 Value Generators overview
51:48 Demo
55:12 Keys and value generation
59:37 Demo
01:25:46 Summary of GUID and INTs
01:33:41 Wrap
Links: learn.microsoft.com/ef/core/l...
Featuring: Arthur Vickers, Shay Rojansky

Пікірлер: 1

  • @cicpolk
    @cicpolk3 ай бұрын

    Great talk Arthur and Shay.

Келесі