crossql - crossql.sqlite 1.0.0.40-pre

A Portable, cross-platform, light weight, opinionated ORM designed to work across multiple Databases.

PM> Install-Package crossql.sqlite -Version 1.0.0.40-pre -Source https://www.myget.org/F/crossql/api/v3/index.json

Copy to clipboard

> nuget.exe install crossql.sqlite -Version 1.0.0.40-pre -Source https://www.myget.org/F/crossql/api/v3/index.json

Copy to clipboard

> dotnet add package crossql.sqlite --version 1.0.0.40-pre --source https://www.myget.org/F/crossql/api/v3/index.json

Copy to clipboard
<PackageReference Include="crossql.sqlite" Version="1.0.0.40-pre" />
Copy to clipboard
source https://www.myget.org/F/crossql/api/v3/index.json

nuget crossql.sqlite  ~> 1.0.0.40-pre
Copy to clipboard

> choco install crossql.sqlite --version 1.0.0.40-pre --source https://www.myget.org/F/crossql/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "crossql" -SourceLocation "https://www.myget.org/F/crossql/api/v2"
Install-Module -Name "crossql.sqlite" -RequiredVersion "1.0.0.40-pre" -Repository "crossql" -AllowPreRelease
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following legacy symbol server URL: https://www.myget.org/F/crossql/symbols/


crossql

A Portable, cross-platform, light weight, opinionated ORM designed to work across multiple Databases


Build Status

Stable Build (master) Pre-Release Build (vnext)
(coming soon) Build status

Packages

Provider Package Name Stable Pre-Release
crossql.core MyGet
SQLite crossql.sqlite MyGet
MS Sql Server crossql.mssqlserver MyGet

Current Support

note: we take pull requests if you'd like to support more ;)

Platform Sqlite SQL Server (>= 2012) PostgreSQL MySQL
Windows
  • [x]
  • [x]
  • [ ]
  • [ ]
Android
  • [x]
iOS
  • [x]

That sounds good, how do I use it?

Create

var jill = new StudentModel
    {
        Id = StudentJillId,
        FirstName = "Jill",
        LastName = "",
        Email = JillEmail,
        Courses = new List<CourseModel> { englishCourse },
    };

await _dbProvider.Create( jill );

Read

IList<StudentModel> allStudents = await _dbProvider.Query<StudentModel>().ToListAsync();
StudentModel jill = await _dbProvider.Query<StudentModel>().Where(s => s.Email == "JillEmail").FirstOrDefaultAsync();

Update

jill.Email = "JillNewEmail";
await _dbProvider.Update<StudentModel>(jill);

Delete
note: this is still a work in progress

// first flavor
await _dbProvider.Query<StudentModel>().Where( s => s.Email == "JillNewEmail" ).Delete();

// second flavor
await _dbProvider.Delete<StudentModel>(s => s.Email == "JillNewEmail");

Meta

We absolutely welcome contributions/suggestions/bug reports from you (the people using this package). If you have any ideas on how to improve it, please post an issue with steps to reproduce, or better yet, submit a Pull Request.

crossql is forked from futurestate.appcore.data. Commit history is in tact.

  • .NETStandard 2.0
    • crossql.core (>= 1.0.0.40-pre)
    • Microsoft.Data.SQLite (>= 2.1.0)
  • .NETStandard 2.0: 2.0.0.0

                        
Assembly Assembly hash Match
/lib/netstandard2.0/crossql.sqlite.dll fcbae302fb7c4e1ea924ed9385423af6FFFFFFFF

Owners

Chase Florell

Authors

Chase Florell, Keith Larsen

Project URL

https://github.com/crossql/crossql

License

MS-PL

Tags

xamarin, windows, ios, android, netstandard, sqlite

Info

20248 total downloads
16359 downloads for version 1.0.0.40-pre
Download (15.24 KB)
Download legacy symbols (18.26 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0.40-pre 15.24 KB Mon, 27 May 2019 20:28:43 GMT 16359
1.0.0.37-pre 15.26 KB Thu, 14 Mar 2019 16:42:31 GMT 2633
1.0.0.36-pre 14.83 KB Wed, 13 Mar 2019 04:08:31 GMT 5
1.0.0.34-pre 14.25 KB Tue, 12 Mar 2019 21:38:51 GMT 81
1.0.0.31-pre 13.58 KB Mon, 06 Aug 2018 03:49:53 GMT 1119
1.0.0.30-pre 13.58 KB Mon, 06 Aug 2018 03:30:39 GMT 6
1.0.0.28-pre 13.54 KB Tue, 26 Jun 2018 17:42:33 GMT 5
1.0.0.26-pre 13.54 KB Sun, 24 Jun 2018 22:33:25 GMT 5
1.0.0.25-pre 13.54 KB Sun, 24 Jun 2018 22:30:09 GMT 5
1.0.0.24-pre 13.54 KB Sun, 24 Jun 2018 15:58:00 GMT 6
1.0.0.23-pre 13.54 KB Sun, 24 Jun 2018 08:24:39 GMT 5
1.0.0.22-pre 13.54 KB Sun, 24 Jun 2018 07:43:51 GMT 5
1.0.0.21-pre 13.54 KB Sun, 24 Jun 2018 07:25:38 GMT 4
1.0.0.20-pre 13.54 KB Sun, 24 Jun 2018 07:21:49 GMT 5
1.0.0.17-pre 13.54 KB Sun, 24 Jun 2018 07:09:20 GMT 5