Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HasData limitation note for DateTime.Now #4878

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

roji
Copy link
Member

@roji roji commented Nov 14, 2024

@@ -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`.
Copy link
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
3 checks passed
@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