CSharpSnapshotGenerator CSharpSnapshotGenerator Class

Definition

public class CSharpSnapshotGenerator
Public Class CSharpSnapshotGenerator
Inheritance
System.ObjectSystem.Object
CSharpSnapshotGeneratorCSharpSnapshotGenerator

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

CSharpSnapshotGenerator(CSharpHelper) CSharpSnapshotGenerator(CSharpHelper)

public CSharpSnapshotGenerator(CSharpHelper codeHelper)
Public Sub New(codeHelper As CSharpHelper)
Parameters

Methods

Generate(String, IModel, IndentedStringBuilder) Generate(String, IModel, IndentedStringBuilder)

public virtual void Generate(string builderName, IModel model, IndentedStringBuilder stringBuilder)
Public Overridable Sub Generate(builderName As String, model As IModel, stringBuilder As IndentedStringBuilder)
Parameters
builderName
System.String System.String
model
IModel IModel

GenerateAnnotation(IAnnotation, IndentedStringBuilder) GenerateAnnotation(IAnnotation, IndentedStringBuilder)

protected virtual void GenerateAnnotation(IAnnotation annotation, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateAnnotation(annotation As IAnnotation, stringBuilder As IndentedStringBuilder)
Parameters

GenerateAnnotations(IReadOnlyList, IndentedStringBuilder) GenerateAnnotations(IReadOnlyList(Of IAnnotation), IndentedStringBuilder)

protected virtual void GenerateAnnotations(IReadOnlyList<IAnnotation> annotations, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateAnnotations(annotations As IReadOnlyList(Of IAnnotation), stringBuilder As IndentedStringBuilder)
Parameters
annotations
System.Collections.Generic.IReadOnlyList<IAnnotation> System.Collections.Generic.IReadOnlyList(Of IAnnotation)

GenerateBaseType(IEntityType, IndentedStringBuilder) GenerateBaseType(IEntityType, IndentedStringBuilder)

protected virtual void GenerateBaseType(IEntityType baseType, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateBaseType(baseType As IEntityType, stringBuilder As IndentedStringBuilder)
Parameters

GenerateEntityType(String, IEntityType, IndentedStringBuilder) GenerateEntityType(String, IEntityType, IndentedStringBuilder)

protected virtual void GenerateEntityType(string builderName, IEntityType entityType, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateEntityType(builderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)
Parameters
builderName
System.String System.String

GenerateEntityTypeAnnotations(IEntityType, IndentedStringBuilder) GenerateEntityTypeAnnotations(IEntityType, IndentedStringBuilder)

protected virtual void GenerateEntityTypeAnnotations(IEntityType entityType, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateEntityTypeAnnotations(entityType As IEntityType, stringBuilder As IndentedStringBuilder)
Parameters

GenerateEntityTypes(String, IReadOnlyList, IndentedStringBuilder) GenerateEntityTypes(String, IReadOnlyList(Of IEntityType), IndentedStringBuilder)

protected virtual void GenerateEntityTypes(string builderName, IReadOnlyList<IEntityType> entityTypes, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateEntityTypes(builderName As String, entityTypes As IReadOnlyList(Of IEntityType), stringBuilder As IndentedStringBuilder)
Parameters
builderName
System.String System.String
entityTypes
System.Collections.Generic.IReadOnlyList<IEntityType> System.Collections.Generic.IReadOnlyList(Of IEntityType)

GenerateFluentApiForAnnotation(ref List, String, String, IndentedStringBuilder) GenerateFluentApiForAnnotation(ByRef List(Of IAnnotation), String, String, IndentedStringBuilder)

protected virtual void GenerateFluentApiForAnnotation(ref List<IAnnotation> annotations, string annotationName, string fluentApiMethodName, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateFluentApiForAnnotation(ByRef annotations As List(Of IAnnotation), annotationName As String, fluentApiMethodName As String, stringBuilder As IndentedStringBuilder)
Parameters
annotations
System.Collections.Generic.List<IAnnotation> System.Collections.Generic.List(Of IAnnotation)
annotationName
System.String System.String
fluentApiMethodName
System.String System.String

GenerateForeignKey(IForeignKey, IndentedStringBuilder) GenerateForeignKey(IForeignKey, IndentedStringBuilder)

protected virtual void GenerateForeignKey(IForeignKey foreignKey, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateForeignKey(foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parameters

GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder) GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)

protected virtual void GenerateForeignKeyAnnotations(IForeignKey foreignKey, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateForeignKeyAnnotations(foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parameters

GenerateForeignKeys(IEnumerable, IndentedStringBuilder) GenerateForeignKeys(IEnumerable(Of IForeignKey), IndentedStringBuilder)

protected virtual void GenerateForeignKeys(IEnumerable<IForeignKey> foreignKeys, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateForeignKeys(foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)
Parameters
foreignKeys
System.Collections.Generic.IEnumerable<IForeignKey> System.Collections.Generic.IEnumerable(Of IForeignKey)

GenerateIndex(IIndex, IndentedStringBuilder) GenerateIndex(IIndex, IndentedStringBuilder)

protected virtual void GenerateIndex(IIndex index, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateIndex(index As IIndex, stringBuilder As IndentedStringBuilder)
Parameters
index
IIndex IIndex

GenerateIndexes(IEnumerable, IndentedStringBuilder) GenerateIndexes(IEnumerable(Of IIndex), IndentedStringBuilder)

protected virtual void GenerateIndexes(IEnumerable<IIndex> indexes, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateIndexes(indexes As IEnumerable(Of IIndex), stringBuilder As IndentedStringBuilder)
Parameters
indexes
System.Collections.Generic.IEnumerable<IIndex> System.Collections.Generic.IEnumerable(Of IIndex)

GenerateKey(IKey, IndentedStringBuilder, Boolean) GenerateKey(IKey, IndentedStringBuilder, Boolean)

protected virtual void GenerateKey(IKey key, IndentedStringBuilder stringBuilder, bool primary = false)
Protected Overridable Sub GenerateKey(key As IKey, stringBuilder As IndentedStringBuilder, primary As Boolean = False)
Parameters
key
IKey IKey
primary
System.Boolean System.Boolean

GenerateKeys(IEnumerable, IKey, IndentedStringBuilder) GenerateKeys(IEnumerable(Of IKey), IKey, IndentedStringBuilder)

protected virtual void GenerateKeys(IEnumerable<IKey> keys, IKey primaryKey, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateKeys(keys As IEnumerable(Of IKey), primaryKey As IKey, stringBuilder As IndentedStringBuilder)
Parameters
keys
System.Collections.Generic.IEnumerable<IKey> System.Collections.Generic.IEnumerable(Of IKey)
primaryKey
IKey IKey

GenerateProperties(IEnumerable, IndentedStringBuilder) GenerateProperties(IEnumerable(Of IProperty), IndentedStringBuilder)

protected virtual void GenerateProperties(IEnumerable<IProperty> properties, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateProperties(properties As IEnumerable(Of IProperty), stringBuilder As IndentedStringBuilder)
Parameters
properties
System.Collections.Generic.IEnumerable<IProperty> System.Collections.Generic.IEnumerable(Of IProperty)

GenerateProperty(IProperty, IndentedStringBuilder) GenerateProperty(IProperty, IndentedStringBuilder)

protected virtual void GenerateProperty(IProperty property, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateProperty(property As IProperty, stringBuilder As IndentedStringBuilder)
Parameters
property
IProperty IProperty

GeneratePropertyAnnotations(IProperty, IndentedStringBuilder) GeneratePropertyAnnotations(IProperty, IndentedStringBuilder)

protected virtual void GeneratePropertyAnnotations(IProperty property, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GeneratePropertyAnnotations(property As IProperty, stringBuilder As IndentedStringBuilder)
Parameters
property
IProperty IProperty

GenerateRelationships(String, IEntityType, IndentedStringBuilder) GenerateRelationships(String, IEntityType, IndentedStringBuilder)

protected virtual void GenerateRelationships(string builderName, IEntityType entityType, IndentedStringBuilder stringBuilder)
Protected Overridable Sub GenerateRelationships(builderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)
Parameters
builderName
System.String System.String

IgnoreAnnotations(IList, String[]) IgnoreAnnotations(IList(Of IAnnotation), String())

protected virtual void IgnoreAnnotations(IList<IAnnotation> annotations, params string[] annotationNames)
Protected Overridable Sub IgnoreAnnotations(annotations As IList(Of IAnnotation), ParamArray annotationNames As String())
Parameters
annotations
System.Collections.Generic.IList<IAnnotation> System.Collections.Generic.IList(Of IAnnotation)
annotationNames
System.String[] System.String()