コード例 #1
0
ファイル: DataAsTree.cs プロジェクト: lanicon/DBreeze
 /// <summary>
 /// Internal
 /// </summary>
 void SetupReadTables()
 {
     if (this.RootNode.nt2Read == null)
     {
         this.RootNode.nt2Read = this.RootNode.Transaction.SelectTable(this.RootNode.DBreezeTableName, new byte[] { 2 }, 0);
         this.RootNode.nt2Read.ValuesLazyLoadingIsOn = false;
         this.RootNode.nt3Read = this.RootNode.Transaction.SelectTable(this.RootNode.DBreezeTableName, new byte[] { 3 }, 0);
         this.RootNode.nt3Read.ValuesLazyLoadingIsOn = false;
     }
 }
コード例 #2
0
ファイル: DataAsTree.cs プロジェクト: StarOfFlame/DBreeze
 /// <summary>
 /// Internal
 /// </summary>
 /// <param name="tran"></param>
 void SetupReadTables(DBreeze.Transactions.Transaction tran)
 {
     if (nt2Read == null)
     {
         nt2Read = tran.SelectTable(DBreezeTableName, new byte[] { 2 }, 0);
         nt2Read.ValuesLazyLoadingIsOn = false;
         nt3Read = tran.SelectTable(DBreezeTableName, new byte[] { 3 }, 0);
         nt3Read.ValuesLazyLoadingIsOn = false;
     }
 }
コード例 #3
0
ファイル: DataAsTree.cs プロジェクト: lanicon/DBreeze
        /// <summary>
        /// Internal
        /// </summary>
        void SetupWriteTables()
        {
            if (this.RootNode.nt2Write == null)
            {
                //under new byte[] { 1 }  we store Id of the entity(long)
                this.RootNode.nt2Write = this.RootNode.Transaction.InsertTable(this.RootNode.DBreezeTableName, new byte[] { 2 }, 0);  //here is a structure table
                this.RootNode.nt2Write.ValuesLazyLoadingIsOn = false;
                this.RootNode.nt3Write = this.RootNode.Transaction.InsertTable(this.RootNode.DBreezeTableName, new byte[] { 3 }, 0);  //here is a search by NodeName table
                this.RootNode.nt3Write.ValuesLazyLoadingIsOn = false;
            }

            if (this.RootNode.maximalInsertSpeed)
            {
                this.RootNode.nt2Write.Technical_SetTable_OverwriteIsNotAllowed();
                this.RootNode.nt3Write.Technical_SetTable_OverwriteIsNotAllowed();
            }
        }
コード例 #4
0
ファイル: DataAsTree.cs プロジェクト: StarOfFlame/DBreeze
        /// <summary>
        /// Internal
        /// </summary>
        /// <param name="tran"></param>
        /// <param name="maximalSpeed"></param>
        void SetupWriteTables(DBreeze.Transactions.Transaction tran, bool maximalSpeed = false)
        {
            if (nt2Write == null)
            {
                //under new byte[] { 1 }  we store Id of the entity(long)
                nt2Write = tran.InsertTable(DBreezeTableName, new byte[] { 2 }, 0);  //here is a structure table
                nt2Write.ValuesLazyLoadingIsOn = false;
                nt3Write = tran.InsertTable(DBreezeTableName, new byte[] { 3 }, 0);  //here is a search by NodeName table
                nt3Write.ValuesLazyLoadingIsOn = false;
            }

            if (maximalSpeed)
            {
                nt2Write.Technical_SetTable_OverwriteIsNotAllowed();
                nt3Write.Technical_SetTable_OverwriteIsNotAllowed();
            }
        }
コード例 #5
0
ファイル: DataAsTree.cs プロジェクト: hhblaze/DBreeze
        /// <summary>
        /// Internal
        /// </summary>
        /// <param name="tran"></param>
        /// <param name="maximalSpeed"></param>
        void SetupWriteTables()
        {
            if (this.RootNode.nt2Write == null)
            {
                //under new byte[] { 1 }  we store Id of the entity(long)
                this.RootNode.nt2Write = this.RootNode.Transaction.InsertTable(this.RootNode.DBreezeTableName, new byte[] { 2 }, 0);  //here is a structure table
                this.RootNode.nt2Write.ValuesLazyLoadingIsOn = false;
                this.RootNode.nt3Write = this.RootNode.Transaction.InsertTable(this.RootNode.DBreezeTableName, new byte[] { 3 }, 0);  //here is a search by NodeName table
                this.RootNode.nt3Write.ValuesLazyLoadingIsOn = false;
            }

            if (this.RootNode.maximalInsertSpeed)
            {
                this.RootNode.nt2Write.Technical_SetTable_OverwriteIsNotAllowed();
                this.RootNode.nt3Write.Technical_SetTable_OverwriteIsNotAllowed();
            }
        }
コード例 #6
0
ファイル: DataAsTree.cs プロジェクト: hhblaze/DBreeze
 /// <summary>
 /// Internal
 /// </summary>
 /// <param name="tran"></param>
 void SetupReadTables()
 {
     if (this.RootNode.nt2Read == null)
     {
         this.RootNode.nt2Read = this.RootNode.Transaction.SelectTable(this.RootNode.DBreezeTableName, new byte[] { 2 }, 0);
         this.RootNode.nt2Read.ValuesLazyLoadingIsOn = false;
         this.RootNode.nt3Read = this.RootNode.Transaction.SelectTable(this.RootNode.DBreezeTableName, new byte[] { 3 }, 0);
         this.RootNode.nt3Read.ValuesLazyLoadingIsOn = false;
     }
 }