Ejemplo n.º 1
0
        /// <summary>
        /// 生成实体代码
        /// </summary>
        /// <param name="project"></param>
        /// <param name="schema"></param>
        public override void CreateEntityCode(ProjectConfig project, EntityConfig schema)
        {
            var pg = new PageGenerator
            {
                Entity  = schema,
                Project = schema.Parent,
            };

            pg.CreateBaseCode(project.FormatPath("Web"));
            pg.CreateExtendCode(project.FormatPath("Page"));
        }