mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
fix: Use Crestron SQLite for 4 series
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user