public override void Generate() { foreach (var table in (from x in _model.Database.Tables where x.Generated && !x.AssociativeTable orderby x.Name select x)) { var template = new ObjectServiceTemplate(_model, table); var fullParentName = RELATIVE_OUTPUT_LOCATION + template.ParentItemName; var fullFileName = RELATIVE_OUTPUT_LOCATION + template.FileName; var eventArgs = new ProjectItemGeneratedEventArgs(fullFileName, template.FileContent, ProjectName, fullParentName, this, true); OnProjectItemGenerated(this, eventArgs); } var gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this); OnGenerationComplete(this, gcEventArgs); }