Exemplo n.º 1
0
        public override void Generate()
        {
            try
            {
                foreach (Table table in _model.Database.Tables)
                {
                    if (table.Name == "PROPERTY_ITEM_DATA_TYPE")
                    {
                        int ii = 0;
                    }


                    if (table.Generated)
                    {
                        foreach (TableComponent component in table.ComponentList)
                        {
                            SelectComponentCommandExtenderTemplate template = new SelectComponentCommandExtenderTemplate(_model, component);
                            string fullFileName = RELATIVE_OUTPUT_LOCATION + template.FileName;
                            ProjectItemGeneratedEventArgs eventArgs = new ProjectItemGeneratedEventArgs(fullFileName, template.FileContent, ProjectName, this, false);
                            OnProjectItemGenerated(this, eventArgs);
                        }
                    }
                }
                ProjectItemGenerationCompleteEventArgs gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);
                OnGenerationComplete(this, gcEventArgs);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
    public override void Generate()
		{
      try
      {
        foreach(Table table in _model.Database.Tables)
        {
          if(table.Name == "PROPERTY_ITEM_DATA_TYPE")
          {
            int ii = 0;
          }


          if(table.Generated)
          {
						foreach (TableComponent component in table.ComponentList)
						{
							SelectComponentCommandExtenderTemplate template = new SelectComponentCommandExtenderTemplate(_model, component);
							string fullFileName = RELATIVE_OUTPUT_LOCATION + template.FileName;
							ProjectItemGeneratedEventArgs eventArgs = new ProjectItemGeneratedEventArgs(fullFileName, template.FileContent, ProjectName, this, false);
							OnProjectItemGenerated(this, eventArgs);
						}
          }
        }
        ProjectItemGenerationCompleteEventArgs gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);
        OnGenerationComplete(this, gcEventArgs);
      }
      catch(Exception ex)
      {
        throw;
      }
    }