PrimitiveCollectionBuilder<TProperty>.ValueGeneratedNever Method

Definition

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

C#
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> ValueGeneratedNever ();

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

Продукт Версии
Entity Framework Core 8.0, 9.0