fix: Use Crestron SQLite for 4 series

This commit is contained in:
Drew Tingen
2022-06-30 17:58:01 -04:00
parent 3b313a442c
commit 92a28813e0
6 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
using System; using System;
#if SIMPLSHARP #if !NETSTANDARD
using SqliteCommand = Crestron.SimplSharp.SQLite.SQLiteCommand; using SqliteCommand = Crestron.SimplSharp.SQLite.SQLiteCommand;
#else #else
using Microsoft.Data.Sqlite; using Microsoft.Data.Sqlite;

View File

@@ -1,6 +1,6 @@
using System; using System;
using ICD.Common.Utils.IO; using ICD.Common.Utils.IO;
#if SIMPLSHARP #if !NETSTANDARD
using SqliteConnection = Crestron.SimplSharp.SQLite.SQLiteConnection; using SqliteConnection = Crestron.SimplSharp.SQLite.SQLiteConnection;
#else #else
using Microsoft.Data.Sqlite; using Microsoft.Data.Sqlite;

View File

@@ -1,4 +1,4 @@
#if SIMPLSHARP #if !NETSTANDARD
using SqliteDataReader = Crestron.SimplSharp.SQLite.SQLiteDataReader; using SqliteDataReader = Crestron.SimplSharp.SQLite.SQLiteDataReader;
#else #else
using System; using System;

View File

@@ -1,4 +1,4 @@
#if SIMPLSHARP #if !NETSTANDARD
using SqliteParameter = Crestron.SimplSharp.SQLite.SQLiteParameter; using SqliteParameter = Crestron.SimplSharp.SQLite.SQLiteParameter;
#else #else
using Microsoft.Data.Sqlite; using Microsoft.Data.Sqlite;

View File

@@ -1,4 +1,4 @@
#if SIMPLSHARP #if !NETSTANDARD
using SqliteParameterCollection = Crestron.SimplSharp.SQLite.SQLiteParameterCollection; using SqliteParameterCollection = Crestron.SimplSharp.SQLite.SQLiteParameterCollection;
#else #else
using Microsoft.Data.Sqlite; using Microsoft.Data.Sqlite;

View File

@@ -1,4 +1,4 @@
#if SIMPLSHARP #if !NETSTANDARD
using Crestron.SimplSharp.CrestronData; using Crestron.SimplSharp.CrestronData;
#else #else
using System; using System;
@@ -41,14 +41,14 @@ namespace ICD.Common.Utils.Sqlite
public static class DbTypeExtensions public static class DbTypeExtensions
{ {
public static public static
#if SIMPLSHARP #if !NETSTANDARD
DbType DbType
#else #else
SqliteType SqliteType
#endif #endif
ToParamType(this eDbType extends) ToParamType(this eDbType extends)
{ {
#if SIMPLSHARP #if !NETSTANDARD
return (DbType)extends; return (DbType)extends;
#else #else
switch (extends) switch (extends)