Beispiel #1
0
 protected override Evaluant.Uss.ObjectContext.Contracts.IObjectContextAsync CreateContext()
 {
     if (os == null)
     {
         IPersistenceProvider provider = new MemoryProvider();
         provider.RegisterMetaData(MetaData.LightMetaDataFactory.FromAssembly(GetType().Assembly, new ReflectionDescriptor(), "Evaluant.Uss.Tests.Model"));
         provider.InitializeConfiguration();
         os = new ObjectService(provider);
         os.ObjectContextType = typeof(EntityResolver.Proxy.Dynamic.ObjectContextAsync).AssemblyQualifiedName;
         os.AddAssembly(GetType().Assembly);
     }
     return os.CreateAsyncObjectContext();
 }