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 ObjectServiceExtenderTemplate(_model, table); var fullFileName = RELATIVE_OUTPUT_LOCATION + template.FileName; var eventArgs = new ProjectItemGeneratedEventArgs(fullFileName, template.FileContent, ProjectName, this, false); OnProjectItemGenerated(this, eventArgs); } var gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this); OnGenerationComplete(this, gcEventArgs); }