Example #1
0
        public override Kodeo.Reegenerator.Generators.RenderResults Render()
        {
            var cls = ElementAtCursor.GetClassAtCursor(ProjectItem.DteObject.DTE);

            //if (cls.GetType().IsSubclassOf(typeof(DbContext)))
            return(null);
        }
Example #2
0
        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);
        }