C# Class Signum.Engine.CodeGeneration.ReactCodeGenerator

Show file Open project: signumsoftware/framework

Public Properties

Property Type Description
CurrentSchema Schema
SolutionFolder string
SolutionName string

Public Methods

Method Description
GenerateReactFromEntities ( ) : void

Protected Methods

Method Description
BaseFileName ( Module m ) : string
CandidateTypes ( ) : List
ControllerFileName ( Module m ) : string
ExtensonsRelativePath ( bool inView ) : string
FrameworkRelativePath ( bool inView ) : string
GetClientFile ( Module m ) : string
GetEntitySetting ( Type type ) : string
GetModules ( ) : IEnumerable
GetProjectFolder ( ) : string
GetProperties ( Type type ) : IEnumerable
GetServerNamespace ( Module mod ) : string
GetServerUsingNamespaces ( Module mod ) : List
GetSolutionInfo ( string &solutionFolder, string &solutionName ) : void
GetTypingsFile ( Module m ) : string
GetVarName ( Type type ) : string
GetViewFileName ( Module m, Type t ) : string
GetViewName ( Type type ) : string
IsValue ( Type type ) : bool
ServerFileName ( Module m ) : string
ShouldWriteControllerFile ( Module mod ) : bool
ShouldWriteServerFile ( Module mod ) : bool
WriteClientFile ( Module mod ) : string
WriteClientStartMethod ( Module mod ) : string
WriteControllerClass ( Module mod ) : string
WriteControllerExampleMethod ( Module mod ) : string
WriteControllerFile ( Module mod ) : string
WriteEmbeddedProperty ( PropertyInfo pi, string v ) : string
WriteEntityComponentFile ( Type type ) : string
WriteEntityProperty ( PropertyInfo pi, string v ) : string
WriteFile ( Func getContent, Func getFileName, bool &overwriteFiles ) : void
WriteMListProperty ( PropertyInfo pi, string v ) : string
WriteProperty ( PropertyInfo pi, string v ) : string
WriteServerClass ( Module mod ) : string
WriteServerFile ( Module mod ) : string
WriteServerStartMethod ( Module mod ) : string
WriteTypingsFile ( Module mod ) : string
WriteValueLine ( PropertyInfo pi, string v ) : string
WritetEntitySettings ( Module mod ) : string
WritetOperationSettings ( Module mod ) : string

Private Methods

Method Description
GetTypingsImports ( ) : string[]

Method Details

BaseFileName() protected method

protected BaseFileName ( Module m ) : string
m Module
return string

CandidateTypes() protected method

protected CandidateTypes ( ) : List
return List

ControllerFileName() protected method

protected ControllerFileName ( Module m ) : string
m Module
return string

ExtensonsRelativePath() protected method

protected ExtensonsRelativePath ( bool inView ) : string
inView bool
return string

FrameworkRelativePath() protected method

protected FrameworkRelativePath ( bool inView ) : string
inView bool
return string

GenerateReactFromEntities() public method

public GenerateReactFromEntities ( ) : void
return void

GetClientFile() protected method

protected GetClientFile ( Module m ) : string
m Module
return string

GetEntitySetting() protected method

protected GetEntitySetting ( Type type ) : string
type System.Type
return string

GetModules() protected method

protected GetModules ( ) : IEnumerable
return IEnumerable

GetProjectFolder() protected method

protected GetProjectFolder ( ) : string
return string

GetProperties() protected method

protected GetProperties ( Type type ) : IEnumerable
type System.Type
return IEnumerable

GetServerNamespace() protected method

protected GetServerNamespace ( Module mod ) : string
mod Module
return string

GetServerUsingNamespaces() protected method

protected GetServerUsingNamespaces ( Module mod ) : List
mod Module
return List

GetSolutionInfo() protected method

protected GetSolutionInfo ( string &solutionFolder, string &solutionName ) : void
solutionFolder string
solutionName string
return void

GetTypingsFile() protected method

protected GetTypingsFile ( Module m ) : string
m Module
return string

GetVarName() protected method

protected GetVarName ( Type type ) : string
type System.Type
return string

GetViewFileName() protected method

protected GetViewFileName ( Module m, Type t ) : string
m Module
t System.Type
return string

GetViewName() protected method

protected GetViewName ( Type type ) : string
type System.Type
return string

IsValue() protected method

protected IsValue ( Type type ) : bool
type System.Type
return bool

ServerFileName() protected method

protected ServerFileName ( Module m ) : string
m Module
return string

ShouldWriteControllerFile() protected method

protected ShouldWriteControllerFile ( Module mod ) : bool
mod Module
return bool

ShouldWriteServerFile() protected method

protected ShouldWriteServerFile ( Module mod ) : bool
mod Module
return bool

WriteClientFile() protected method

protected WriteClientFile ( Module mod ) : string
mod Module
return string

WriteClientStartMethod() protected method

protected WriteClientStartMethod ( Module mod ) : string
mod Module
return string

WriteControllerClass() protected method

protected WriteControllerClass ( Module mod ) : string
mod Module
return string

WriteControllerExampleMethod() protected method

protected WriteControllerExampleMethod ( Module mod ) : string
mod Module
return string

WriteControllerFile() protected method

protected WriteControllerFile ( Module mod ) : string
mod Module
return string

WriteEmbeddedProperty() protected method

protected WriteEmbeddedProperty ( PropertyInfo pi, string v ) : string
pi System.Reflection.PropertyInfo
v string
return string

WriteEntityComponentFile() protected method

protected WriteEntityComponentFile ( Type type ) : string
type System.Type
return string

WriteEntityProperty() protected method

protected WriteEntityProperty ( PropertyInfo pi, string v ) : string
pi System.Reflection.PropertyInfo
v string
return string

WriteFile() protected method

protected WriteFile ( Func getContent, Func getFileName, bool &overwriteFiles ) : void
getContent Func
getFileName Func
overwriteFiles bool
return void

WriteMListProperty() protected method

protected WriteMListProperty ( PropertyInfo pi, string v ) : string
pi System.Reflection.PropertyInfo
v string
return string

WriteProperty() protected method

protected WriteProperty ( PropertyInfo pi, string v ) : string
pi System.Reflection.PropertyInfo
v string
return string

WriteServerClass() protected method

protected WriteServerClass ( Module mod ) : string
mod Module
return string

WriteServerFile() protected method

protected WriteServerFile ( Module mod ) : string
mod Module
return string

WriteServerStartMethod() protected method

protected WriteServerStartMethod ( Module mod ) : string
mod Module
return string

WriteTypingsFile() protected method

protected WriteTypingsFile ( Module mod ) : string
mod Module
return string

WriteValueLine() protected method

protected WriteValueLine ( PropertyInfo pi, string v ) : string
pi System.Reflection.PropertyInfo
v string
return string

WritetEntitySettings() protected method

protected WritetEntitySettings ( Module mod ) : string
mod Module
return string

WritetOperationSettings() protected method

protected WritetOperationSettings ( Module mod ) : string
mod Module
return string

Property Details

CurrentSchema public property

public Schema CurrentSchema
return Schema

SolutionFolder public property

public string SolutionFolder
return string

SolutionName public property

public string SolutionName
return string