Ejemplo n.º 1
0
 /// <summary>Creates a new instance of the DefaultPersistenceManager.</summary>
 public ContentPersister(IRepository <int, ContentItem> itemRepository, INHRepository <int, ContentDetail> linkRepository,
                         IItemFinder finder)
 {
     this.itemRepository = itemRepository;
     this.linkRepository = linkRepository;
     this.finder         = finder;
 }
Ejemplo n.º 2
0
        public static void Setup(out ContentPersister persister, ISessionProvider sessionProvider, N2.Persistence.IRepository <int, ContentItem> itemRepository, INHRepository <int, ContentDetail> linkRepository, ItemFinder finder, SchemaExport schemaCreator)
        {
            persister = new ContentPersister(itemRepository, linkRepository, finder);

            schemaCreator.Execute(false, true, false, sessionProvider.OpenSession.Session.Connection, null);
        }
Ejemplo n.º 3
0
        public static void Setup(out ContentPersister persister, ISessionProvider sessionProvider, N2.Persistence.IRepository <ContentItem> itemRepository, INHRepository <ContentDetail> linkRepository, SchemaExport schemaCreator)
        {
            persister = new ContentPersister(itemRepository, linkRepository);
            new BehaviorInvoker(persister, new N2.Definitions.Static.DefinitionMap()).Start();

            schemaCreator.Execute(false, true, false, sessionProvider.OpenSession.Session.Connection, null);
        }
Ejemplo n.º 4
0
 public DataBindingNHRepository(INHRepository <T> inner) : base(inner)
 {
 }