GithubHelp home page GithubHelp logo

clancey / simpledatabase Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 1.0 4.68 MB

Extension of Sqlite-net to make Databases simple for Mobile

License: Apache License 2.0

C# 100.00%
database sqlite-orm

simpledatabase's Introduction

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

Available on Nuget

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

API

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

Database.Main.RowsInSection<T>(section);

Database.Main.NumberOfSections<T>();

Database.Main.ObjectForRow<T>(section, row);

Database.Main.SectionHeader<T>(section);

Database.Main.QuickJump<T>();

Model Attributes

Add attributes for OrderBy and Grouping

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

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

Database.Main.RowsInSection<Song>(group , section);

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

simpledatabase's People

Contributors

clancey avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nagyist

simpledatabase's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.