mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
add dll config file
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using MediaBrowser.Model.IO;
|
||||
using MediaBrowser.Model.Serialization;
|
||||
@@ -127,5 +128,14 @@ namespace Emby.Server.Implementations.Data
|
||||
return stream.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public static void Attach(IDatabaseConnection db, string path, string alias)
|
||||
{
|
||||
var commandText = string.Format("attach ? as {0};", alias);
|
||||
var paramList = new List<object>();
|
||||
paramList.Add(path);
|
||||
|
||||
db.Execute(commandText, paramList.ToArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user