Initial Commit
This commit is contained in:
22
SQLiteTest/App.config
Normal file
22
SQLiteTest/App.config
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
</startup>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||
<parameters>
|
||||
<parameter value="mssqllocaldb" />
|
||||
</parameters>
|
||||
</defaultConnectionFactory>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
|
||||
</configuration>
|
166
SQLiteTest/Movie.cs
Normal file
166
SQLiteTest/Movie.cs
Normal file
@ -0,0 +1,166 @@
|
||||
using Microsoft.Data.Sqlite;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
namespace SQLiteTest {
|
||||
internal class Movie {
|
||||
public Movie() {
|
||||
}
|
||||
|
||||
public Movie(ref SqliteDataReader query) {
|
||||
ID = query.GetInt32(query.GetOrdinal("ID")); // Non null objects
|
||||
Title = query.GetString(query.GetOrdinal("Title"));
|
||||
Overview = query.GetString(query.GetOrdinal("Overview"));
|
||||
|
||||
int index = query.GetOrdinal("Tagline");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Tagline found!");
|
||||
else
|
||||
Tagline = query.GetString(index);
|
||||
|
||||
index = query.GetOrdinal("BackdropPath");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No BackdropPath found!");
|
||||
else
|
||||
BackdropPath = query.GetString(index);
|
||||
|
||||
index = query.GetOrdinal("PosterPath");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No PosterPath found!");
|
||||
else
|
||||
PosterPath = query.GetString(index);
|
||||
|
||||
index = query.GetOrdinal("ImdbID");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No ImdbID found!");
|
||||
else
|
||||
ImdbID = query.GetString(index);
|
||||
|
||||
index = query.GetOrdinal("Adult");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Adult found!");
|
||||
else
|
||||
Adult = query.GetBoolean(index);
|
||||
|
||||
index = query.GetOrdinal("Budget");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Budget found!");
|
||||
else
|
||||
Budget = query.GetInt64(index);
|
||||
|
||||
index = query.GetOrdinal("Genres");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Genres found!");
|
||||
else
|
||||
Genres = query.GetString(index); // TODO: This!
|
||||
|
||||
index = query.GetOrdinal("Popularity");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Popularity found!");
|
||||
else
|
||||
Popularity = query.GetDouble(index);
|
||||
|
||||
index = query.GetOrdinal("ReleaseDate");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No ReleaseDate found!");
|
||||
else {
|
||||
string ReleaseDatestring = query.GetString(index);
|
||||
}
|
||||
|
||||
index = query.GetOrdinal("Revenue");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Revenue found!");
|
||||
else
|
||||
Revenue = query.GetInt64(index);
|
||||
|
||||
index = query.GetOrdinal("Runtime");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Runtime found!");
|
||||
else
|
||||
Runtime = query.GetInt32(index);
|
||||
|
||||
index = query.GetOrdinal("Status");
|
||||
if (query.IsDBNull(index))
|
||||
Debug.WriteLine("No Status found!");
|
||||
else
|
||||
Status = query.GetString(index);
|
||||
}
|
||||
/// <summary>
|
||||
/// Movie ID on TMDB.
|
||||
/// </summary>
|
||||
public int ID { get; set; }
|
||||
/// <summary>
|
||||
/// Title of the movie.
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// Tagline of the movie.
|
||||
/// </summary>
|
||||
public string Tagline { get; set; }
|
||||
/// <summary>
|
||||
/// Summary of the movie plot.
|
||||
/// </summary>
|
||||
public string Overview { get; set; }
|
||||
/// <summary>
|
||||
/// Path to a wallpaper of the movie.
|
||||
/// </summary>
|
||||
public string BackdropPath { get; set; }
|
||||
/// <summary>
|
||||
/// Path to a poster of the movie.
|
||||
/// </summary>
|
||||
public string PosterPath { get; set; }
|
||||
/// <summary>
|
||||
/// Movie ID on IMDB.
|
||||
/// </summary>
|
||||
public string ImdbID { get; set; }
|
||||
/// <summary>
|
||||
/// Whether or not the movie is age restricted.
|
||||
/// Pattern: ^tt[0-9]{7}
|
||||
/// </summary>
|
||||
public bool? Adult { get; set; }
|
||||
/// <summary>
|
||||
/// Production budget of the movie.
|
||||
/// </summary>
|
||||
public long? Budget { get; set; }
|
||||
/// <summary>
|
||||
/// Comma Separated list of genres.
|
||||
/// </summary>
|
||||
public string Genres { get; set; }
|
||||
/// <summary>
|
||||
/// Current popularity. Has to be refreshed!
|
||||
/// </summary>
|
||||
public double? Popularity { get; set; }
|
||||
/// <summary>
|
||||
/// Release date of the movie.
|
||||
/// </summary>
|
||||
public DateTime? ReleaseDate { get; set; }
|
||||
/// <summary>
|
||||
/// Revenue of the movie.
|
||||
/// </summary>
|
||||
public long? Revenue { get; set; }
|
||||
/// <summary>
|
||||
/// Runtime of the movie in minutes.
|
||||
/// </summary>
|
||||
public int? Runtime { get; set; }
|
||||
/// <summary>
|
||||
/// Current movie status: Rumored, Planned, In Production, Post Production, Released, Canceled.
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
|
||||
public override bool Equals(object obj) {
|
||||
return base.Equals(obj);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ID is unique to a movie object thus it can be used as a hash.
|
||||
/// </summary>
|
||||
/// <returns>Movie ID as a unique id.</returns>
|
||||
public override int GetHashCode() => ID;
|
||||
/// <summary>
|
||||
/// String containing the movie ID as well as the title and the release year.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString() => $"{ID}: {Title}{(ReleaseDate.HasValue ? $" ({ReleaseDate.Value.Year})" : "")}";
|
||||
}
|
||||
}
|
185
SQLiteTest/Program.cs
Normal file
185
SQLiteTest/Program.cs
Normal file
@ -0,0 +1,185 @@
|
||||
using Microsoft.Data.Sqlite;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SQLiteTest {
|
||||
class Program {
|
||||
const string APIKey = "badd41f2c2c9879186a8082b1d16fd69";
|
||||
const string Language = "en-US";
|
||||
const string filename = @"C:\Users\micha\source\repos\SQLiteTest\MovieDatabase.db";
|
||||
const string CreateGenreTable = @"CREATE TABLE `Genres` (
|
||||
`ID` INTEGER NOT NULL UNIQUE,
|
||||
`Name` TEXT NOT NULL,
|
||||
PRIMARY KEY(`ID`)
|
||||
);";
|
||||
static void Main(string[] args) {
|
||||
RefreshGenreList();
|
||||
Random rnd = new Random();
|
||||
int random = rnd.Next(999999);
|
||||
Movie newMovie = new Movie() { ID = random, Title = "Movie no. " + random.ToString(), Overview = "The Inception is amazing!", ReleaseDate = null, Adult = true, ImdbID = "tt" + rnd.Next(0000000, 9999999), Status = "Released", Runtime = 148 };
|
||||
AddMovie(in newMovie);
|
||||
foreach (Movie movie in QueryMovies())
|
||||
Console.WriteLine(movie.ToString());
|
||||
Console.ReadKey();
|
||||
}
|
||||
|
||||
private static void RefreshGenreList() {
|
||||
var client = new RestClient($"https://api.themoviedb.org/3/genre/movie/list?language={Language}&api_key={APIKey}");
|
||||
var request = new RestRequest(Method.GET);
|
||||
request.AddParameter("undefined", "{}", ParameterType.RequestBody);
|
||||
IRestResponse response = client.Execute(request);
|
||||
try {
|
||||
dynamic responseObject = JsonConvert.DeserializeObject<dynamic>(response.Content);
|
||||
if (!(responseObject.status_message is null))
|
||||
Console.WriteLine("Status: {0}", responseObject.status_message);
|
||||
Dictionary<int, string> genres = new Dictionary<int, string>();
|
||||
foreach (var a in responseObject.genres) {
|
||||
genres.Add((int)a.id, (string)a.name);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Console.WriteLine("Response could not be parsed: {0}", e.Message);
|
||||
}
|
||||
if (!response.IsSuccessful) {
|
||||
Console.WriteLine("Request failed: {0}", response.ErrorMessage);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<Movie> QueryMovies() {
|
||||
const string tableCommand = "SELECT * FROM Movies";
|
||||
using (SqliteConnection db = new SqliteConnection($"Data Source={filename};")) {
|
||||
try {
|
||||
db.Open();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Database connection failed: {0}", e.Message);
|
||||
yield break;
|
||||
}
|
||||
using (SqliteCommand readTableCommand = new SqliteCommand(tableCommand, db)) {
|
||||
SqliteDataReader query;
|
||||
try {
|
||||
query = readTableCommand.ExecuteReader();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Query failed: {0}", e.Message);
|
||||
yield break;
|
||||
}
|
||||
while (query.Read()) {
|
||||
yield return new Movie(ref query);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void Query(in string command) {
|
||||
using (SqliteConnection db = new SqliteConnection($"Data Source={filename};")) {
|
||||
try {
|
||||
db.Open();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Database connection failed: {0}", e.Message);
|
||||
return;
|
||||
}
|
||||
using (SqliteCommand insertCommand = new SqliteCommand(command, db)) {
|
||||
SqliteDataReader query;
|
||||
try {
|
||||
query = insertCommand.ExecuteReader();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Query failed: {0}", e.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
try {
|
||||
db.Close();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Database closing failed: {0}", e.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
Console.WriteLine("Query successful!");
|
||||
}
|
||||
private static void AddMovie(in Movie movie) {
|
||||
using (SqliteConnection db = new SqliteConnection($"Data Source={filename};")) {
|
||||
try {
|
||||
db.Open();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Database connection failed: {0}", e.Message);
|
||||
return;
|
||||
}
|
||||
using (SqliteCommand insertCommand = new SqliteCommand()) {
|
||||
insertCommand.Connection = db;
|
||||
insertCommand.CommandText = "INSERT INTO `Movies`(`ID`,`Title`,`Tagline`,`Overview`,`BackdropPath`,`PosterPath`,`ImdbID`,`Adult`,`Budget`,`Genres`,`Popularity`,`ReleaseDate`,`Revenue`,`Runtime`,`Status`) VALUES (@ID, @Title, @Tagline, @Overview, @BackdropPath, @PosterPath, @ImdbID, @Adult, @Budget, @Genres, @Popularity, @ReleaseDate, @Revenue, @Runtime, @Status);";
|
||||
#region Params
|
||||
insertCommand.Parameters.AddWithValue("@ID", movie.ID);
|
||||
insertCommand.Parameters.AddWithValue("@Title", movie.Title);
|
||||
insertCommand.Parameters.AddWithValue("@Overview", movie.Overview);
|
||||
if (string.IsNullOrWhiteSpace(movie.Tagline))
|
||||
insertCommand.Parameters.AddWithValue("@Tagline", DBNull.Value);
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Tagline", movie.Tagline);
|
||||
if (string.IsNullOrWhiteSpace(movie.BackdropPath))
|
||||
insertCommand.Parameters.AddWithValue("@BackdropPath", DBNull.Value);
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@BackdropPath", movie.BackdropPath);
|
||||
if (string.IsNullOrWhiteSpace(movie.PosterPath))
|
||||
insertCommand.Parameters.AddWithValue("@PosterPath", DBNull.Value);
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@PosterPath", movie.PosterPath);
|
||||
if (string.IsNullOrWhiteSpace(movie.ImdbID))
|
||||
insertCommand.Parameters.AddWithValue("@ImdbID", DBNull.Value);
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@ImdbID", movie.ImdbID);
|
||||
if (string.IsNullOrWhiteSpace(movie.Status))
|
||||
insertCommand.Parameters.AddWithValue("@Status", DBNull.Value);
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Status", movie.Status);
|
||||
if (string.IsNullOrWhiteSpace(movie.Genres))
|
||||
insertCommand.Parameters.AddWithValue("@Genres", DBNull.Value);
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Genres", movie.Genres);
|
||||
if (movie.Adult.HasValue)
|
||||
insertCommand.Parameters.AddWithValue("@Adult", movie.Adult.Value ? "1" : "0");
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Adult", DBNull.Value);
|
||||
if (movie.Budget.HasValue)
|
||||
insertCommand.Parameters.AddWithValue("@Budget", movie.Budget.Value.ToString());
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Budget", DBNull.Value);
|
||||
if (movie.Popularity.HasValue)
|
||||
insertCommand.Parameters.AddWithValue("@Popularity", movie.Popularity.Value.ToString());
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Popularity", DBNull.Value);
|
||||
if (movie.Runtime.HasValue)
|
||||
insertCommand.Parameters.AddWithValue("@Runtime", movie.Runtime.Value.ToString());
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Runtime", DBNull.Value);
|
||||
if (movie.Revenue.HasValue)
|
||||
insertCommand.Parameters.AddWithValue("@Revenue", movie.Revenue.Value.ToString());
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@Revenue", DBNull.Value);
|
||||
if (movie.ReleaseDate.HasValue)
|
||||
insertCommand.Parameters.AddWithValue("@ReleaseDate", movie.ReleaseDate.Value.ToString("yyyy-MM-dd HH:mm:ss.fff"));
|
||||
else
|
||||
insertCommand.Parameters.AddWithValue("@ReleaseDate", DBNull.Value);
|
||||
#endregion
|
||||
SqliteDataReader query;
|
||||
try {
|
||||
query = insertCommand.ExecuteReader();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Insertion failed: {0}", e.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
try {
|
||||
db.Close();
|
||||
} catch (SqliteException e) {
|
||||
Console.WriteLine("Database closing failed: {0}", e.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
36
SQLiteTest/Properties/AssemblyInfo.cs
Normal file
36
SQLiteTest/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die einer Assembly zugeordnet sind.
|
||||
[assembly: AssemblyTitle("SQLiteTest")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SQLiteTest")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("1a03f4bf-e99e-4ff6-a30e-2668a7773456")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
98
SQLiteTest/SQLiteTest.csproj
Normal file
98
SQLiteTest/SQLiteTest.csproj
Normal file
@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{1A03F4BF-E99E-4FF6-A30E-2668A7773456}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>SQLiteTest</RootNamespace>
|
||||
<AssemblyName>SQLiteTest</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Data.Sqlite, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Data.Sqlite.Core.2.1.0\lib\netstandard2.0\Microsoft.Data.Sqlite.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="RestSharp, Version=106.5.2.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\RestSharp.106.5.2\lib\net452\RestSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SQLitePCLRaw.batteries_green, Version=1.1.11.121, Culture=neutral, PublicKeyToken=a84b7dcfb1391f7f, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SQLitePCLRaw.bundle_green.1.1.11\lib\net45\SQLitePCLRaw.batteries_green.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SQLitePCLRaw.batteries_v2, Version=1.1.11.121, Culture=neutral, PublicKeyToken=8226ea5df37bcae9, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SQLitePCLRaw.bundle_green.1.1.11\lib\net45\SQLitePCLRaw.batteries_v2.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SQLitePCLRaw.core, Version=1.1.11.121, Culture=neutral, PublicKeyToken=1488e028ca7ab535, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SQLitePCLRaw.core.1.1.11\lib\net45\SQLitePCLRaw.core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SQLitePCLRaw.provider.e_sqlite3, Version=1.1.11.121, Culture=neutral, PublicKeyToken=9c301db686d0bd12, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SQLitePCLRaw.provider.e_sqlite3.net45.1.1.11\lib\net45\SQLitePCLRaw.provider.e_sqlite3.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Movie.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\SQLitePCLRaw.lib.e_sqlite3.linux.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.linux.targets" Condition="Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.linux.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.linux.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.linux.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.linux.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SQLitePCLRaw.lib.e_sqlite3.linux.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.linux.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.osx.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.osx.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SQLitePCLRaw.lib.e_sqlite3.osx.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.osx.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.v110_xp.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.v110_xp.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SQLitePCLRaw.lib.e_sqlite3.v110_xp.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.v110_xp.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\SQLitePCLRaw.lib.e_sqlite3.osx.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.osx.targets" Condition="Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.osx.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.osx.targets')" />
|
||||
<Import Project="..\packages\SQLitePCLRaw.lib.e_sqlite3.v110_xp.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.v110_xp.targets" Condition="Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.v110_xp.1.1.11\build\net35\SQLitePCLRaw.lib.e_sqlite3.v110_xp.targets')" />
|
||||
</Project>
|
14
SQLiteTest/packages.config
Normal file
14
SQLiteTest/packages.config
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="EntityFramework" version="6.2.0" targetFramework="net461" />
|
||||
<package id="Microsoft.Data.Sqlite" version="2.1.0" targetFramework="net461" />
|
||||
<package id="Microsoft.Data.Sqlite.Core" version="2.1.0" targetFramework="net461" />
|
||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
||||
<package id="RestSharp" version="106.5.2" targetFramework="net461" />
|
||||
<package id="SQLitePCLRaw.bundle_green" version="1.1.11" targetFramework="net461" />
|
||||
<package id="SQLitePCLRaw.core" version="1.1.11" targetFramework="net461" />
|
||||
<package id="SQLitePCLRaw.lib.e_sqlite3.linux" version="1.1.11" targetFramework="net461" />
|
||||
<package id="SQLitePCLRaw.lib.e_sqlite3.osx" version="1.1.11" targetFramework="net461" />
|
||||
<package id="SQLitePCLRaw.lib.e_sqlite3.v110_xp" version="1.1.11" targetFramework="net461" />
|
||||
<package id="SQLitePCLRaw.provider.e_sqlite3.net45" version="1.1.11" targetFramework="net461" />
|
||||
</packages>
|
Reference in New Issue
Block a user