An open API service indexing awesome lists of open source software.

https://github.com/clancey/simpledatabase

Extension of Sqlite-net to make Databases simple for Mobile
https://github.com/clancey/simpledatabase

database sqlite-orm

Last synced: 5 months ago
JSON representation

Extension of Sqlite-net to make Databases simple for Mobile

Awesome Lists containing this project

README

          

Simple Database
================

Creating fast, responsive and grouped Tableviews is hard. Espcially with very large data sets. Simple Database takes care of this for you by extending [SQLite-net](https://github.com/praeclarum/sqlite-net)

Available on Nuget
================

https://www.nuget.org/packages/Clancey.SimpleDatabase/

API
================

Simple tables gives you the interface you need to populate a ListView

```cs
Database.Main.RowsInSection(section);

Database.Main.NumberOfSections();

Database.Main.ObjectForRow(section, row);

Database.Main.SectionHeader(section);

Database.Main.QuickJump();

```

Model Attributes
===
Add attributes for OrderBy and Grouping

```cs

class MyClass
{
[Indexed, PrimaryKey]
public string Id {get;set;}

//Typically this is just one letter, and the first letter of the displayed text
[GroupBy]
public virtual string IndexCharacter {get;set;}

[OrderBy]
public string Name {get;set;}
}
```

GroupInfo
================

Sometimes you need to filter or Add dynamically compose a query. Simple Auth uses named parameters

```cs
var artist = new { Id = "Foo"};
var group = Database.Main.GetGroupInfo().Clone();
group.Filter = "ArtistId = @ArtistId";
group.Params["@ArtistId"] = artist.Id;

Database.Main.RowsInSection(group , section);

```

#Open Source Software
This project was built on the shoulders of giants!

- [SQLite-net](https://github.com/praeclarum/sqlite-net)