public NodesDataRepositoryEf(NodesDataDbContext nodesDataDbContext)
        {
            this.db = nodesDataDbContext;
            CreateDb();

            updateDbTimer.Elapsed += UpdateDbTimerEvent;
            if (writeInterval > 0)
            {
                updateDbTimer.Interval = writeInterval;
                updateDbTimer.Start();
            }
        }
        public NodesDataRepositoryEf(NodesDataDbContext nodesDataDbContext)
        {
            this.db = nodesDataDbContext;
            CreateDb();

            updateDbTimer.Elapsed += UpdateDbTimerEvent;
            if (writeInterval > 0)
            {
                updateDbTimer.Interval = writeInterval;
                updateDbTimer.Start();
            }
        }