Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
Testing with a lighter approach
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Jul 2, 2018
1 parent 10a11da commit 04a0587
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
20 changes: 10 additions & 10 deletions src/Unosquare.Labs.LiteLib/ILiteDbSet.cs
Expand Up @@ -86,7 +86,7 @@ public interface ILiteDbSet<T> : ILiteDbSet

/// <summary>
/// Selects a set of entities from the database.
/// Example whereText = "X = @X" and whereParames = new { X = "hello" }
/// Example whereText = "X = @X" and whereParames = new { X = "hello" }.
/// </summary>
/// <param name="whereText">The where text.</param>
/// <param name="whereParams">The where parameters.</param>
Expand Down Expand Up @@ -144,38 +144,38 @@ public interface ILiteDbSet<T> : ILiteDbSet

/// <summary>
/// Deletes the asynchronous.
/// Example whereText = "X = @X" and whereParames = new { X = "hello" }
/// Example whereText = "X = @X" and whereParames = new { X = "hello" }.
/// </summary>
/// <param name="whereText">The where text.</param>
/// <param name="whereParams">The where parameters.</param>
/// <returns>A Task of type Enumerable with a generic type</returns>
/// <returns>A Task of type Enumerable with a generic type.</returns>
Task<int> DeleteAsync(string whereText, object whereParams);

/// <summary>
/// Provides and asynchronous counterpart to the Select method
/// Provides and asynchronous counterpart to the Select method.
/// </summary>
/// <param name="whereText">The where text.</param>
/// <param name="whereParams">The where parameters.</param>
/// <returns>A Task of type Enumerable with a generic type</returns>
/// <returns>A Task of type Enumerable with a generic type.</returns>
Task<IEnumerable<T>> SelectAsync(string whereText, object whereParams);

/// <summary>
/// Selects all asynchronous.
/// </summary>
/// <returns>A Task of type Enumerable with a generic type</returns>
/// <returns>A Task of type Enumerable with a generic type.</returns>
Task<IEnumerable<T>> SelectAllAsync();

/// <summary>
/// Provides and asynchronous counterpart to the Single method
/// Provides and asynchronous counterpart to the Single method.
/// </summary>
/// <param name="rowId">The row identifier.</param>
/// <returns>A Task with a generyc type</returns>
/// <returns>A Task with a generyc type.</returns>
Task<T> SingleAsync(long rowId);

/// <summary>
/// Provides and asynchronous counterpart to the Count method
/// Provides and asynchronous counterpart to the Count method.
/// </summary>
/// <returns>A Task with the total number of rows</returns>
/// <returns>A Task with the total number of rows.</returns>
Task<int> CountAsync();
}
}
17 changes: 5 additions & 12 deletions src/Unosquare.Labs.LiteLib/Unosquare.Labs.LiteLib.csproj
Expand Up @@ -3,13 +3,13 @@
<PropertyGroup>
<Description>A cool little wrapper for SQLite based on Dapper.</Description>
<AssemblyTitle>LiteLib</AssemblyTitle>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Unosquare.Labs.LiteLib</AssemblyName>
<PackageId>LiteLib</PackageId>
<DebugType>Full</DebugType>
<CodeAnalysisRuleSet>..\..\StyleCop.Analyzers.ruleset</CodeAnalysisRuleSet>
<Version>0.15.4</Version>
<Version>0.16.1</Version>
<Authors>Unosquare</Authors>
<Company>Unosquare</Company>
<Copyright>Copyright (c) 2016-2018 Unosquare</Copyright>
Expand All @@ -19,8 +19,8 @@
<RepositoryUrl>https://github.com/unosquare/litelib</RepositoryUrl>
<PackageIconUrl>https://raw.githubusercontent.com/unosquare/litelib/master/litelib-logo.png</PackageIconUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>orm sqlite dapper</PackageTags>
<ContentSQLiteInteropFiles>true</ContentSQLiteInteropFiles> <LangVersion>7.2</LangVersion>
<PackageTags>orm sqlite dapper database</PackageTags>
<LangVersion>7.2</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -30,13 +30,6 @@
<PackageReference Include="Dapper" Version="1.50.5" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
<PackageReference Include="Unosquare.Swan.Lite" Version="0.32.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.108" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.1.0" />
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="2.1.0" />
</ItemGroup>
</Project>
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net46;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<AssemblyName>Unosquare.Labs.LiteLib.Tests</AssemblyName>
<PackageId>Unosquare.Labs.LiteLib.Tests</PackageId>
</PropertyGroup>
Expand All @@ -15,5 +15,6 @@
<PackageReference Include="dotnet-test-nunit" Version="3.4.0-beta-1" />
<PackageReference Include="NUnit" Version="3.10.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="1.1.11" />
</ItemGroup>
</Project>

0 comments on commit 04a0587

Please sign in to comment.