Skip to content

Add HasData limitation note for DateTime.Now#4878

Merged
roji merged 1 commit intodotnet:mainfrom
roji:Seeding
Nov 14, 2024
Merged

Add HasData limitation note for DateTime.Now#4878
roji merged 1 commit intodotnet:mainfrom
roji:Seeding

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Nov 14, 2024

* 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`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Data that isn't fixed and deterministic, such as seeding to `DateTime.Now`.
* Data that isn't fixed and deterministic, such as seeding with `DateTime.Now`.

@roji roji merged commit 0261e68 into dotnet:main Nov 14, 2024
@roji roji deleted the Seeding branch November 14, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants