Example #1
0
 public string this[SQLiteLinkType link]
 {
     get
     {
         return(Links.FirstOrDefault(l => l.LocalLink == link)?.DBPath);
     }
 }
Example #2
0
 public SQLiteManualConnection GetConnection(SQLiteLinkType sqlLinkType)
 {
     Connections.TryGetValue(sqlLinkType, out SQLiteManualConnection value);
     if (value == null)
     {
         string sqlPath = UnityPath.Combinate(links[sqlLinkType], UnityPath.AssetPath.Persistent);
         if (!string.IsNullOrEmpty(sqlPath))
         {
             value = new SQLiteManualConnection(sqlPath);
             Connections[sqlLinkType] = value;
         }
     }
     return(value);
 }