CSharpSnapshotGenerator.GenerateComplexProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GenerateComplexProperty(String, IComplexProperty, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
为 . 生成代码 IComplexProperty。
protected virtual void GenerateComplexProperty(string builderName, Microsoft.EntityFrameworkCore.Metadata.IComplexProperty complexProperty, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateComplexProperty : string * Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateComplexProperty : string * Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateComplexProperty (builderName As String, complexProperty As IComplexProperty, stringBuilder As IndentedStringBuilder)
参数
- builderName
- String
生成器变量的名称。
- complexProperty
- IComplexProperty
实体类型。
- stringBuilder
- IndentedStringBuilder
将生成器代码添加到该代码中。
适用于
GenerateComplexProperty(String, IComplexProperty, CSharpSnapshotGeneratorParameters)
- Source:
- CSharpSnapshotGenerator.cs
为 . 生成代码 IComplexProperty。
protected virtual void GenerateComplexProperty(string builderName, Microsoft.EntityFrameworkCore.Metadata.IComplexProperty complexProperty, Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorParameters parameters);
abstract member GenerateComplexProperty : string * Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorParameters -> unit
override this.GenerateComplexProperty : string * Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorParameters -> unit
Protected Overridable Sub GenerateComplexProperty (builderName As String, complexProperty As IComplexProperty, parameters As CSharpSnapshotGeneratorParameters)
参数
- builderName
- String
生成器变量的名称。
- complexProperty
- IComplexProperty
实体类型。
- parameters
- CSharpSnapshotGeneratorParameters
生成上下文。