C# Class Serenity.CodeGeneration.ServerImportsGenerator

Inheritance: ServerImportGeneratorBase
Exibir arquivo Open project: volkanceylan/Serenity

Public Methods

Method Description
ServerImportsGenerator ( ) : Newtonsoft.Json

Protected Methods

Method Description
GenerateAll ( ) : void
GenerateBasicType ( Type type ) : void
GenerateCodeFor ( Type type ) : void
HandleMemberType ( Type memberType, string codeNamespace, System.StringBuilder sb = null ) : void
IsTS ( ) : bool
IsUsingNamespace ( string ns ) : bool
ShortenFullName ( ExternalType type, string codeNamespace ) : string

Private Methods

Method Description
GenerateEnum ( Type enumType ) : void
GenerateForm ( Type type, FormScriptAttribute formScriptAttribute ) : void
GenerateRowMembers ( Type rowType ) : void
GenerateService ( Type type ) : void

Method Details

GenerateAll() protected method

protected GenerateAll ( ) : void
return void

GenerateBasicType() protected method

protected GenerateBasicType ( Type type ) : void
type System.Type
return void

GenerateCodeFor() protected method

protected GenerateCodeFor ( Type type ) : void
type System.Type
return void

HandleMemberType() protected method

protected HandleMemberType ( Type memberType, string codeNamespace, System.StringBuilder sb = null ) : void
memberType System.Type
codeNamespace string
sb System.StringBuilder
return void

IsTS() protected method

protected IsTS ( ) : bool
return bool

IsUsingNamespace() protected method

protected IsUsingNamespace ( string ns ) : bool
ns string
return bool

ServerImportsGenerator() public method

public ServerImportsGenerator ( ) : Newtonsoft.Json
return Newtonsoft.Json

ShortenFullName() protected method

protected ShortenFullName ( ExternalType type, string codeNamespace ) : string
type ExternalType
codeNamespace string
return string