crossql - crossql.mssqlserver 1.0.0.26-pre

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

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

Copy to clipboard

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

Copy to clipboard

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

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

nuget crossql.mssqlserver  ~> 1.0.0.26-pre
Copy to clipboard

> choco install crossql.mssqlserver --version 1.0.0.26-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.mssqlserver" -RequiredVersion "1.0.0.26-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.

  • .NETFramework 4.6.2
    • crossql.core (>= 1.0.0.26-pre)
  • .NETFramework 4.6.2: 4.6.2.0

                        
Assembly Assembly hash Match
/lib/net462/crossql.mssqlserver.dll 209860ce4b7b45fb9690450a36943f78FFFFFFFF

Owners

Chase Florell

Authors

Chase Florell, Keith Larsen

Project URL

https://github.com/crossql/crossql

License

MS-PL

Tags

xamarin, windows, ios, android, netstandard, sql-server

Info

73 total downloads
7 downloads for version 1.0.0.26-pre
Download (12.62 KB)
Download legacy symbols (15.07 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0.40-pre 12.51 KB Mon, 27 May 2019 20:28:39 GMT 7
1.0.0.37-pre 12.52 KB Thu, 14 Mar 2019 16:42:27 GMT 7
1.0.0.36-pre 12.52 KB Wed, 13 Mar 2019 04:08:27 GMT 6
1.0.0.34-pre 12.52 KB Tue, 12 Mar 2019 21:38:47 GMT 6
1.0.0.31-pre 12.52 KB Mon, 06 Aug 2018 03:49:50 GMT 6
1.0.0.30-pre 12.52 KB Mon, 06 Aug 2018 03:30:36 GMT 6
1.0.0.28-pre 12.49 KB Tue, 26 Jun 2018 17:42:32 GMT 5
1.0.0.26-pre 12.62 KB Sun, 24 Jun 2018 22:33:23 GMT 7
1.0.0.25-pre 12.62 KB Sun, 24 Jun 2018 22:30:08 GMT 5
1.0.0.24-pre 12.62 KB Sun, 24 Jun 2018 15:57:57 GMT 6
1.0.0.23-pre 12.62 KB Sun, 24 Jun 2018 08:24:38 GMT 6
1.0.0.22-pre 12.61 KB Sun, 24 Jun 2018 07:43:49 GMT 6