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