Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the TypeScriptFluent class
 /// </summary>
 public TypeScriptFluent(TsGenerator scriptGenerator)
 {
     _modelBuilder    = new TsModelBuilder();
     _scriptGenerator = scriptGenerator;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the TypeScriptFluent class
 /// </summary>
 /// <param name="fluentConfigurator">The source fluent configurator</param>
 protected TypeScriptFluent(TypeScriptFluent fluentConfigurator)
 {
     _modelBuilder    = fluentConfigurator._modelBuilder;
     _scriptGenerator = fluentConfigurator._scriptGenerator;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates an instance of the FluentTsModelBuider for use in T4 templates.
 /// </summary>
 /// <param name="scriptGenerator">The script generator you want it constructed with</param>
 /// <returns>An instance of the FluentTsModelBuider</returns>
 public static TypeScriptFluent Definitions(TsGenerator scriptGenerator)
 {
     return(new TypeScriptFluent(scriptGenerator));
 }