ComplexPropertyBuilder.HasPropertyAnnotation(String, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加或更新复杂属性上的批注。 如果具有指定键的 annotation 批注已存在,则会更新其值。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder HasPropertyAnnotation(string annotation, object? value);
abstract member HasPropertyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
override this.HasPropertyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
Public Overridable Function HasPropertyAnnotation (annotation As String, value As Object) As ComplexPropertyBuilder
参数
- annotation
- String
要添加或更新的批注的键。
- value
- Object
要存储在批注中的值。
返回
同一个生成器实例,以便可以链接多个配置调用。