Пример #1
0
 TypesInfo GetTypesInfo() {
     var typesInfo = new TypesInfo();
     typesInfo.AddEntityStore(new NonPersistentEntityStore(typesInfo));
     var xpoSource = new XpoTypeInfoSource(typesInfo);
     typesInfo.AddEntityStore(xpoSource);
     XpandModuleBase.Dictiorary = xpoSource.XPDictionary;
     return typesInfo;
 }
Пример #2
0
 TypesInfo GetTypesInfo() {
     var typesInfo = new TypesInfo();
     typesInfo.AddSource(new ReflectionTypeInfoSource());
     var xpoSource = new XpoTypeInfoSource(typesInfo);
     typesInfo.Source = xpoSource;
     typesInfo.AddSource(xpoSource);
     typesInfo.AddSource(new DynamicTypeInfoSource());
     typesInfo.SetRedirectStrategy((@from, info) => xpoSource.GetFirstRegisteredTypeForEntity(from) ?? from);
     return typesInfo;
 }