コード例 #1
0
 public LoadEntitiesFromEntityStorageGenerator(string projectName, QueryGenerator query, StorageInterfaceGenerator storageInterface, OperationInterfaceGenerator operationInterface, LoadEntitiesFromEntityStorage modelParameters, IList <Modelable> storages) : base(projectName, "Operations", modelParameters.Name, typeof(LoadEntitiesFromEntityStorageTemplate), modelParameters, modelParameters.Name)
 {
     Query = query;
     OperationInterface = operationInterface;
     Storage            = storages.Single(x => x.Key.Equals(modelParameters.EntityStorageName));
     StorageInterface   = storageInterface;
 }
コード例 #2
0
 public ActionControllerGenerator(string projectName, string actionName, IList <ActionGenerator> actions, CustomHttpActivatorGenerator httpActivator, StorageInterfaceGenerator storageInterfaceGenerator, OperationInterfaceGenerator operationInterface) : base(projectName, "Controllers", actions.Single(x => x.Key == actionName).Key + "Controller", typeof(ActionControllerTemplate))
 {
     OperationInterface = operationInterface;
     Action             = actions.Single(x => x.Key == actionName);
     StorageInterface   = storageInterfaceGenerator;
     HttpActivator      = httpActivator;
 }
コード例 #3
0
 public DataGeneratorGenerator(string projectName, EntityInterfaceGenerator entityInterface, DataFactoryInterfaceGenerator dataFactoryInterface, IList <EntityGenerator> entities, StorageInterfaceGenerator storageInterface) : base(projectName, "DataGenerators", "DataGenerator", typeof(DataGeneratorTemplate))
 {
     StorageInterface     = storageInterface;
     EntityInterface      = entityInterface;
     DataFactoryInterface = dataFactoryInterface;
     Entities             = entities.ToList();
 }
 public WorkerContainerInstallerGenerator(string projectName, StorageInterfaceGenerator storageInterface, MessageBusInterfaceGenerator messageBusInterface, MessageBusHandlerInterfaceGenerator messageBusHandlerInterface, OperationInterfaceGenerator operationInterface, ActionBaseGenerator actionBase, bool canInitialize = true) : base(projectName, "Utils", "Installer", typeof(WorkerContainerInstallerTemplate), canInitialize)
 {
     ActionBase                 = actionBase;
     StorageInterface           = storageInterface;
     MessageBusInterface        = messageBusInterface;
     MessageBusHandlerInterface = messageBusHandlerInterface;
     OperationInterface         = operationInterface;
 }
コード例 #5
0
 public AzureSqlDatabaseContextGenerator(string projectName, QueryGenerator query, IList <EntityGenerator> entities, EntityInterfaceGenerator entityInterface, StorageInterfaceGenerator storageInterface, AzureSQLDatabase modelParameters, DataGeneratorGenerator dataGenerator) : base(projectName, modelParameters.Name, modelParameters.Name + "AzureSqlDatabaseContext", typeof(AzureSqlDatabaseContextTemplate), modelParameters, modelParameters.Name)
 {
     DataGenerator    = dataGenerator;
     StorageInterface = storageInterface;
     Query            = query;
     Entities         = entities.Where(x => modelParameters.EntitySets.Select(y => y.EntityName).ToList().Contains(x.Name)).ToList();
     EntityInterface  = entityInterface;
 }
コード例 #6
0
 public WorkerMainGenerator(string projectName, StorageInterfaceGenerator storageInterfaceGenerator, MessageBusInterfaceGenerator messageBusInterface, MessageBusHandlerInterfaceGenerator messageBusHandlerInterface) : base(projectName, "", "Program", typeof(WorkerMainTemplate))
 {
     StorageInterface           = storageInterfaceGenerator;
     MessageBusHandlerInterface = messageBusHandlerInterface;
     MessageBusInterface        = messageBusInterface;
 }