public override void Generate() { foreach (Table table in (from x in _model.Database.Tables where x.Generated orderby x.Name select x)) { if (table.Generated) { foreach (TableComponent component in table.ComponentList) { BusinessComponentLINQGeneratedTemplate template = new BusinessComponentLINQGeneratedTemplate(_model, component); 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); }