public string GetDataBasePath(bool isGlobal, string dbName) { if (dbName == MemoryDB) { return(dbName); } string dbPath = dbName; if (!Path.IsPathRooted(dbName)) { dbPath = Path.Combine(isGlobal || string.IsNullOrEmpty(ServerID) ? DataPath : Path.Combine(DataPath, ServerID), dbName); } if (!Storage.Exists(dbPath)) { ZibaobaoLibContext.Instance.IsFirstTimeStart = true; Storage.Create(dbPath); } return(dbPath); }