Ejemplo n.º 1
0
        public static XPClassInfo AddClass(this XPDictionary xpDictionary, IPersistentClassInfo info)
        {
            var         builder     = PersistentClassTypeBuilder.BuildClass();
            XPClassInfo xpClassInfo = CreateClass(xpDictionary, info, builder);

            CreateMembers(info, xpClassInfo.ClassType);
            return(xpClassInfo);
        }
Ejemplo n.º 2
0
        public static void AddClasses(this XPDictionary xpDictionary, List <IPersistentClassInfo> persistentClassInfos)
        {
            var builder = PersistentClassTypeBuilder.BuildClass();

            foreach (IPersistentClassInfo persistentClassInfo in persistentClassInfos)
            {
                CreateClass(xpDictionary, persistentClassInfo, builder);
            }
            foreach (IPersistentClassInfo classInfo in persistentClassInfos)
            {
                CreateMembers(classInfo, classInfo.PersistentTypeClassInfo.ClassType);
            }
        }