From a8d63bfa6dc7d428b7a1b13a197be192b177480c Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Thu, 14 Nov 2024 10:44:19 +0100 Subject: [PATCH] Add HasData limitation note for DateTime.Now Relates to https://github.com/dotnet/efcore/issues/35080#issuecomment-2473864073 --- entity-framework/core/modeling/data-seeding.md | 1 + 1 file changed, 1 insertion(+) diff --git a/entity-framework/core/modeling/data-seeding.md b/entity-framework/core/modeling/data-seeding.md index 4dba91863a..2d6fe7b2f5 100644 --- a/entity-framework/core/modeling/data-seeding.md +++ b/entity-framework/core/modeling/data-seeding.md @@ -107,6 +107,7 @@ If your scenario includes any of the following it is recommended to use `UseSeed * Data that needs key values to be generated by the database, including entities that use alternate keys as the identity * Data that requires custom transformation (that is not handled by [value conversions](xref:core/modeling/value-conversions)), such as some password hashing * Data that requires calls to external API, such as ASP.NET Core Identity roles and users creation +* Data that isn't fixed and deterministic, such as seeding to `DateTime.Now`.