CSharpSnapshotGenerator.GeneratePropertyOverrides 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 IRelationalPropertyOverrides 对象生成代码。
protected virtual void GeneratePropertyOverrides (string tableBuilderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GeneratePropertyOverrides : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GeneratePropertyOverrides : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GeneratePropertyOverrides (tableBuilderName As String, entityType As IEntityType, storeObject As StoreObjectIdentifier, stringBuilder As IndentedStringBuilder)
参数
- tableBuilderName
- String
表生成器变量的名称。
- entityType
- IEntityType
实体类型。
- storeObject
- StoreObjectIdentifier
存储对象标识符。
- stringBuilder
- IndentedStringBuilder
将生成器代码添加到 。