mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
fix: Use Crestron SQLite for 4 series
This commit is contained in:
parent
3b313a442c
commit
92a28813e0
6 changed files with 8 additions and 8 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue