public static bool Init() { using (var _db = new Rbr_Db()) { var _nodeCount = PlatformManager.GetNodeCount(_db); if (_nodeCount == 0) { _db.BeginTransaction(); try { //add DEFAULT Platform - PlatformConfiguration.Instance.Standalone PlatformManager.CreateDefaultPlatform(_db); //TODO: remove - not needed, Currrent Node is not singleton anymore //reset CusrrentNode to load new(created) Node //CurrentNode.Instance.Reload(_db); _db.CommitTransaction(); } catch { _db.RollbackTransaction(); throw; } } return(true); } }