C# Class EFUtility.CodeGenerationTools.EntityFrameworkTemplateFileManager

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

Private Properties

Property Type Description
EntityFrameworkTemplateFileManager System

Public Methods

Method 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.

Protected Methods

Method Description
CreateFile ( string fileName, string content ) : void
IsFileContentDifferent ( String fileName, string newContent ) : bool

Private Methods

Method Description
EntityFrameworkTemplateFileManager ( object textTransformation ) : System

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

Method Details

Create() public static method

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

CreateFile() protected method

protected CreateFile ( string fileName, string content ) : void
fileName string
content string
return void

EndBlock() public method

public EndBlock ( ) : void
return void

IsFileContentDifferent() protected method

protected IsFileContentDifferent ( String fileName, string newContent ) : bool
fileName String
newContent string
return bool

Process() public method

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

StartFooter() public method

public StartFooter ( ) : void
return void

StartHeader() public method

public StartHeader ( ) : void
return void

StartNewFile() public method

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
return void