Inheritance: Widgetsphere.Generator.ProjectItemGenerators.ObjectListPagesTemplate
Exemple #1
0
        public override void Generate()
        {
            foreach (Table table in _model.Database.Tables.OrderBy(x => x.Name))
            {
                if (table.Generated)
                {
                    ObjectListPagesGeneratedTemplate template = new ObjectListPagesGeneratedTemplate(_model, table);
                    string fullParentName = RELATIVE_OUTPUT_LOCATION + template.ParentItemName;
                    ProjectItemGeneratedEventArgs eventArgs = new ProjectItemGeneratedEventArgs(template.FileName, template.FileContent, ProjectName, fullParentName, this, true);
                    OnProjectItemGenerated(this, eventArgs);
                }
            }
            ProjectItemGenerationCompleteEventArgs gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);

            OnGenerationComplete(this, gcEventArgs);
        }
    public override void Generate()
		{
			foreach (Table table in _model.Database.Tables.OrderBy(x => x.Name))
			{
				if (table.Generated)
				{
					ObjectListPagesGeneratedTemplate template = new ObjectListPagesGeneratedTemplate(_model, table);
					string fullParentName = RELATIVE_OUTPUT_LOCATION + template.ParentItemName;
          ProjectItemGeneratedEventArgs eventArgs = new ProjectItemGeneratedEventArgs(template.FileName, template.FileContent, ProjectName, fullParentName, this, true);
					OnProjectItemGenerated(this, eventArgs);
				}
			}
			ProjectItemGenerationCompleteEventArgs gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);
			OnGenerationComplete(this, gcEventArgs);

    }