public override Kodeo.Reegenerator.Generators.RenderResults Render() { var cls = ElementAtCursor.GetClassAtCursor(ProjectItem.DteObject.DTE); //if (cls.GetType().IsSubclassOf(typeof(DbContext))) return(null); }
private CodeClass2 GetClassAtCursor() { ClassName = "PropertyNames"; var cls = ElementAtCursor.GetClassAtCursor(ProjectItem.DteObject.DTE); //if we are inside the generated class, use the parent class instead if (cls.Name == ClassName) { cls = (CodeClass2)cls.Parent; } return(cls); }