SQLiteAbstractCrud 1.5.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SQLiteAbstractCrud --version 1.5.0
NuGet\Install-Package SQLiteAbstractCrud -Version 1.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SQLiteAbstractCrud" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SQLiteAbstractCrud" Version="1.5.0" />
<PackageReference Include="SQLiteAbstractCrud" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SQLiteAbstractCrud --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SQLiteAbstractCrud, 1.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SQLiteAbstractCrud@1.5.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SQLiteAbstractCrud&version=1.5.0
#tool nuget:?package=SQLiteAbstractCrud&version=1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SQLiteAbstractCrud
Use:
using System;
using System.Collections.Generic;
using System.Linq;
using SQLiteAbstractCrud;
namespace Sample
{
public class Program
{
static void Main(string[] args)
{
PersonRepository personRepository = new ("./my-db.db");
Console.WriteLine("\r\nSimple insert");
personRepository.Insert(new Person(false, "Bob"));
var person = personRepository.GetAll().First();
Console.WriteLine(person.Name);
Console.WriteLine("\r\nBatch insert");
var persons = new List<Person>
{
new Person(false, "Mary"),
new Person(false, "John")
};
personRepository.InsertBatch(persons);
personRepository.GetAll().ToList().ForEach(person => Console.WriteLine(person.Name));
}
}
// repository
public class PersonRepository : RepositoryBase<Person>
{
public PersonRepository(string pathDbFile) : base(pathDbFile)
{
}
}
// entity
public class Person
{
[PrimaryKey] // required
[AutoIncrement] // optional
public int Id { get; set; }
public string Name { get; set; }
public bool IsDriver { get; set; }
// required constructor with all properties in alphabetical order
public Person(int id, bool isDriver, string name)
{
Id = id;
IsDriver = isDriver;
Name = name;
}
public Person(bool isDriver, string name)
{
IsDriver = isDriver;
Name = name;
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- SQLiteAbstractCrud.Proxy (>= 1.0.0)
- System.Data.SQLite (>= 1.0.115.5)
- Util (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.3 | 569 | 10/11/2022 |
| 1.5.2 | 520 | 10/11/2022 |
| 1.5.1 | 526 | 10/11/2022 |
| 1.5.0 | 497 | 10/11/2022 |
| 1.4.1 | 665 | 9/19/2022 |
| 1.4.0 | 603 | 9/18/2022 |
| 1.3.1 | 549 | 9/15/2022 |
| 1.3.0 | 539 | 9/15/2022 |
| 1.2.7 | 813 | 4/26/2022 |
| 1.2.6 | 603 | 4/20/2022 |
| 1.2.5 | 579 | 4/19/2022 |
| 1.2.4 | 611 | 4/12/2022 |
| 1.2.3.3 | 779 | 3/23/2022 |
| 1.2.3.2 | 618 | 3/9/2022 |
| 1.2.3.1 | 687 | 2/17/2022 |
| 1.2.3 | 890 | 2/3/2022 |
| 1.2.2 | 639 | 2/2/2022 |
| 1.2.1 | 648 | 1/29/2022 |
| 1.2.0 | 602 | 1/29/2022 |
| 1.1.0 | 603 | 1/28/2022 |
Loading failed