C# Class EFUtility.CodeGenerationTools.EntityFrameworkTemplateFileManager

Responsible for marking the various sections of the generation, so they can be split up into separate files
Afficher le fichier Open project: jradxl/Entity-Framework-Code-Generation-Tools-Experiments

Private Properties

Свойство Type Description
EntityFrameworkTemplateFileManager System

Méthodes publiques

Méthode Description
Create ( object textTransformation ) : EntityFrameworkTemplateFileManager

Creates the VsEntityFrameworkTemplateFileManager if VS is detected, otherwise creates the file system version.

EndBlock ( ) : void
Process ( bool split = true ) : IEnumerable

Produce the template output files.

StartFooter ( ) : void
StartHeader ( ) : void
StartNewFile ( string name ) : void

Marks the end of the last file if there was one, and starts a new and marks this point in generation as a new file.

Méthodes protégées

Méthode Description
CreateFile ( string fileName, string content ) : void
IsFileContentDifferent ( String fileName, string newContent ) : bool

Private Methods

Méthode Description
EntityFrameworkTemplateFileManager ( object textTransformation ) : System

Initializes an EntityFrameworkTemplateFileManager Instance with the TextTransformation (T4 generated class) that is currently running

Method Details

Create() public static méthode

Creates the VsEntityFrameworkTemplateFileManager if VS is detected, otherwise creates the file system version.
public static Create ( object textTransformation ) : EntityFrameworkTemplateFileManager
textTransformation object
Résultat EntityFrameworkTemplateFileManager

CreateFile() protected méthode

protected CreateFile ( string fileName, string content ) : void
fileName string
content string
Résultat void

EndBlock() public méthode

public EndBlock ( ) : void
Résultat void

IsFileContentDifferent() protected méthode

protected IsFileContentDifferent ( String fileName, string newContent ) : bool
fileName String
newContent string
Résultat bool

Process() public méthode

Produce the template output files.
public Process ( bool split = true ) : IEnumerable
split bool
Résultat IEnumerable

StartFooter() public méthode

public StartFooter ( ) : void
Résultat void

StartHeader() public méthode

public StartHeader ( ) : void
Résultat void

StartNewFile() public méthode

Marks the end of the last file if there was one, and starts a new and marks this point in generation as a new file.
public StartNewFile ( string name ) : void
name string
Résultat void