Language

CSharpSnapshotGeneratorParameters Class

Definition

The parameter object that flows context (the output builder and the set of identifiers currently in scope) through a CSharpSnapshotGenerator call tree.

[System.Runtime.CompilerServices.Nullable(0)]
public sealed class CSharpSnapshotGeneratorParameters : IEquatable<Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGeneratorParameters>
[<System.Runtime.CompilerServices.Nullable(0)>]
type CSharpSnapshotGeneratorParameters = class
    interface IEquatable<CSharpSnapshotGeneratorParameters>
Public NotInheritable Class CSharpSnapshotGeneratorParameters
Implements IEquatable(Of CSharpSnapshotGeneratorParameters)
Inheritance
CSharpSnapshotGeneratorParameters
Attributes
Implements

Constructors

Name Description
CSharpSnapshotGeneratorParameters(IndentedStringBuilder, ICollection<String>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Properties

Name Description
Scope

The set of identifiers currently in scope. Generators that introduce new locals (e.g. var index = b.HasIndex(...);) should pick names from Identifier(String, ICollection<String>, Nullable<Boolean>) with this scope so that the chosen name doesn't collide with another identifier in the same lambda body.

StringBuilder

The builder code is added to.

Methods

Name Description
<Clone>$()
Equals(CSharpSnapshotGeneratorParameters)
Equals(Object)
GetHashCode()
ToString()

Operators

Name Description
Equality(CSharpSnapshotGeneratorParameters, CSharpSnapshotGeneratorParameters)
Inequality(CSharpSnapshotGeneratorParameters, CSharpSnapshotGeneratorParameters)

Applies to