示例#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);
        }
示例#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);
            }
        }