Пример #1
0
        public Entity CreateEntity(string type)
        {
            EntityDefinition def      = Conf.EntityManagement.GetEntityDefinition(type);
            List <Section>   sections = def.GetInitalSections().Select(d => (Section)Activator.CreateInstance(Type.GetType(Conf.EntityManagement.GetSectionDefinition(d).Type))).ToList();

            return(new Entity {
                Type = type, Sections = sections
            });
        }