PropertyBuilder.ValueGeneratedNever Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures a property to never have a value generated by the database when an instance of this entity type is saved.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ValueGeneratedNever ();
abstract member ValueGeneratedNever : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
override this.ValueGeneratedNever : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
Public Overridable Function ValueGeneratedNever () As PropertyBuilder
Returns
The same builder instance so that multiple configuration calls can be chained.
Remarks
Note that values may still be generated by a client-side value generator, if one is set explicitly or by a convention.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for