Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1543,6 +1543,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3mc";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3mc";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3mc";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "e_sqlite3mc";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "__Internal";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlcipher";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1543,6 +1543,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,18 @@ static class NativeMethods
{
private const string SQLITE_DLL = "sqlite3";

#if NET
static NativeMethods()
{
if (AppContext.TryGetSwitch("SQLitePCL.LinkageType.Static", out bool isStatic) && isStatic)
{
nint selfHandle = NativeLibrary.GetMainProgramHandle();
NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly,
(string libraryName, Assembly asm, DllImportSearchPath? dllImportSearchPath) => selfHandle;
}
}
#endif

[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
public static extern unsafe int sqlite3_close(IntPtr db);

Expand Down
Loading