protected override void CreateDefaultObjectSpaceProvider(CreateCustomObjectSpaceProviderEventArgs args) { args.ObjectSpaceProvider = new XPObjectSpaceProvider(args.ConnectionString, args.Connection, false); NonPersistentEntityStore entityStore = new NonPersistentEntityStore((TypesInfo)TypesInfo); entityStore.RegisterEntity(typeof(IPerson)); nonPersistentProvider = new NonPersistentObjectSpaceProvider(TypesInfo, entityStore); args.ObjectSpaceProviders.Add(nonPersistentProvider); }
public ReportsObjectSpaceProvider(ITypesInfo typesInfo, NonPersistentEntityStore nonPersistentEntityStore) : base(typesInfo, nonPersistentEntityStore) { this.typesInfo = typesInfo; this.entityStore = nonPersistentEntityStore; }