SQLiteAbstractCrud 1.5.3

dotnet add package SQLiteAbstractCrud --version 1.5.3
                    
NuGet\Install-Package SQLiteAbstractCrud -Version 1.5.3
                    
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.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SQLiteAbstractCrud" Version="1.5.3" />
                    
Directory.Packages.props
<PackageReference Include="SQLiteAbstractCrud" />
                    
Project file
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.3
                    
#r "nuget: SQLiteAbstractCrud, 1.5.3"
                    
#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.3
                    
#: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.3
                    
Install as a Cake Addin
#tool nuget:?package=SQLiteAbstractCrud&version=1.5.3
                    
Install as a Cake Tool

SQLiteAbstractCrud

Use:

using System;
using System.Collections.Generic;
using System.Linq;
using SQLiteAbstractCrud;
using SQLiteAbstractCrud.Proxy.Attributes;

namespace Sample
{
    public class Program
    {
        static void Main(string[] args)
        {
            // 1. Create a repository class with RepositoryBase<T> as base
            // 2. Pass the path of the file db as constructor
            PersonRepository personRepository = new ("./my-db.db");

            Console.WriteLine("\r\nSimple insert");
            personRepository.Insert(new Person(1, false, "Bob")); // insert
            var person = personRepository.GetAll().First(); // getAll
            Console.WriteLine(person.Name);

            Console.WriteLine("\r\nBatch insert");
            var persons = new List<Person>
            {
                new Person(2, false, "Mary"),
                new Person(3, false, "John")
            };
            personRepository.InsertBatch(persons); // insertBatch
            var people = personRepository.GetAll().ToList(); // getAll
            people.ForEach(person => Console.WriteLine(person.Name));

            Console.WriteLine("\r\nDelete");
            personRepository.Delete(people[0].Id); // delete
            personRepository.GetAll().ToList().ForEach(person => Console.WriteLine(person.Name));// getAll

            Console.ReadKey();
        }
    }


    // repository
    public class PersonRepository : RepositoryBase<Person>
    {
        public PersonRepository(string pathDbFile) : base(pathDbFile)
        {
        }
    }



    // entity
    public class Person
    {
        [PrimaryKey] // required
        public int Id { get; set; }
        public bool IsDriver { get; set; }
        public string Name { get; set; }

        public Person(int id, bool isDriver, string name)
        {
            Id = id;
            IsDriver = isDriver;
            Name = name;
        }
    }
}



Product 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.

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 568 10/11/2022
1.5.2 519 10/11/2022
1.5.1 525 10/11/2022
1.5.0 496 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