SqlitePropertyBuilderExtensions.CanSetValueGenerationStrategy 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示是否可以为属性设置给定的值生成策略。
public static bool CanSetValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy? strategy, bool fromDataAnnotation = false);
static member CanSetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqliteValueGenerationStrategy> * bool -> bool
<Extension()>
Public Function CanSetValueGenerationStrategy (propertyBuilder As IConventionPropertyBuilder, strategy As Nullable(Of SqliteValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Boolean
参数
- propertyBuilder
- IConventionPropertyBuilder
属性的生成器。
- strategy
- Nullable<SqliteValueGenerationStrategy>
策略。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定了配置。
返回