PropertyBuilder.ValueGeneratedNever Method

Definition

Configures a property to never have a value generated by the database when an instance of this entity type is saved.

C#
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ValueGeneratedNever ();

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

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0