changes so mono.data.sqlite use dllmap

This commit is contained in:
UbitUmarov
2022-11-24 15:11:56 +00:00
parent a133a0c7ac
commit 4565281d41
10 changed files with 20 additions and 19 deletions

View File

@@ -81,8 +81,7 @@ namespace OpenSim.Data.SQLite
/// <param name="dbconnect">connect string</param>
override public void Initialise(string dbconnect)
{
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteAssetData).Assembly);
if (dbconnect.Length == 0)
{

View File

@@ -65,8 +65,7 @@ namespace OpenSim.Data.SQLite
if (!m_initialized)
{
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteAuthenticationData).Assembly);
m_Connection = new SqliteConnection(connectionString);
m_Connection.Open();

View File

@@ -69,8 +69,7 @@ namespace OpenSim.Data.SQLite
public void Initialise(string connectionString)
{
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteEstateStore).Assembly);
m_connectionString = connectionString;

View File

@@ -48,8 +48,7 @@ namespace OpenSim.Data.SQLite
protected SQLiteFramework(string connectionString)
{
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteFramework).Assembly);
}
//////////////////////////////////////////////////////////////

View File

@@ -113,8 +113,7 @@ namespace OpenSim.Data.SQLite
{
try
{
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteSimulationData).Assembly);
m_connectionString = connectionString;

View File

@@ -69,8 +69,7 @@ namespace OpenSim.Data.SQLite
public void Initialise(string connectionString)
{
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteUserProfilesData).Assembly);
m_connectionString = connectionString;

View File

@@ -52,8 +52,7 @@ namespace OpenSim.Data.SQLite
public SQLiteXInventoryData(string conn, string realm)
{
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteXInventoryData).Assembly);
m_Folders = new SqliteFolderHandler(
conn, "inventoryfolders", "XInventoryStore");