Пример #1
0
        /// <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();
            }
        }