PropertyBuilder<TProperty>.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 when an instance of this entity type is saved.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ValueGeneratedNever ();
override this.ValueGeneratedNever : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
Public Overridable Function ValueGeneratedNever () As PropertyBuilder(Of TProperty)
Returns
The same builder instance so that multiple configuration calls can be chained.
Remarks
Note that temporary values may still be generated for use internally before a new entity is saved.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework