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); }
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); } }