CodeWriter CodeWriter Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public abstract class CodeWriter
Public MustInherit Class CodeWriter
Inheritance
System.ObjectSystem.Object
CodeWriterCodeWriter

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

CodeWriter(IFileService) CodeWriter(IFileService)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected CodeWriter(IFileService fileService)
Protected Sub New(fileService As IFileService)
Parameters

Properties

FileExtension FileExtension

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string FileExtension { get; set; }
Public Overridable Property FileExtension As String
Value
System.String System.String

FileService FileService

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IFileService FileService { get; }
Public Overridable ReadOnly Property FileService As IFileService

Methods

GetExistingFilePaths(String, String, IEnumerable) GetExistingFilePaths(String, String, IEnumerable(Of IEntityType))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IList<string> GetExistingFilePaths(string outputPath, string dbContextClassName, IEnumerable<IEntityType> entityTypes)
Public Overridable Function GetExistingFilePaths(outputPath As String, dbContextClassName As String, entityTypes As IEnumerable(Of IEntityType)) As IList(Of String)
Parameters
outputPath
System.String System.String
dbContextClassName
System.String System.String
entityTypes
System.Collections.Generic.IEnumerable<IEntityType> System.Collections.Generic.IEnumerable(Of IEntityType)
Returns
System.Collections.Generic.IList<System.String> System.Collections.Generic.IList(Of System.String)

GetReadOnlyFilePaths(String, String, IEnumerable) GetReadOnlyFilePaths(String, String, IEnumerable(Of IEntityType))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IList<string> GetReadOnlyFilePaths(string outputPath, string dbContextClassName, IEnumerable<IEntityType> entityTypes)
Public Overridable Function GetReadOnlyFilePaths(outputPath As String, dbContextClassName As String, entityTypes As IEnumerable(Of IEntityType)) As IList(Of String)
Parameters
outputPath
System.String System.String
dbContextClassName
System.String System.String
entityTypes
System.Collections.Generic.IEnumerable<IEntityType> System.Collections.Generic.IEnumerable(Of IEntityType)
Returns
System.Collections.Generic.IList<System.String> System.Collections.Generic.IList(Of System.String)

WriteCodeAsync(ModelConfiguration, String, String, CancellationToken) WriteCodeAsync(ModelConfiguration, String, String, CancellationToken)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public abstract Task<ReverseEngineerFiles> WriteCodeAsync(ModelConfiguration modelConfiguration, string outputPath, string dbContextClassName, CancellationToken cancellationToken = null)
Public MustOverride Function WriteCodeAsync(modelConfiguration As ModelConfiguration, outputPath As String, dbContextClassName As String, cancellationToken As CancellationToken = Nothing) As Task(Of ReverseEngineerFiles)
Parameters
outputPath
System.String System.String
dbContextClassName
System.String System.String
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<ReverseEngineerFiles> System.Threading.Tasks.Task(Of ReverseEngineerFiles)