Git Product home page Git Product logo

audibeneappointment's Introduction

Todo (Xamarin.Forms)

Xamarin.Forms provides two solution templates for building cross-platform applications: PCL or Shared Project. This Todo sample application is provided using both templates. The Xamarin.Forms application code is fundamentally the same, except where the database connection is created (because it requires a file-system reference to the SQLite data file).

NOTE: Windows Phone requires you to download Precompiled Binaries for Windows Phone 8 VSIX and install in Visual Studio; this enables the SQLite for Windows Phone extension that you can then add to your app.

Right-click References and select Add Reference. Go to Windows Phone > Extensions and check the option SQLite for Windows Phone to add the extension to the project.

PCL (Portable Class Library)

This solution uses the SQLite.NET PCL NuGet to provide a cross-platform implementation of the SQLite database API. The shared PCL project references the NuGet to implement the TaskDatabase class. Platform-specific instances of the SQLiteConnection are created and injected on each platform (in AppDelegate, MainActivity, and MainPage).

Shared Project

This version uses the raw C# source of SQLite.NET in the Shared Project, which is accessed by the TaskDatabase class. There is a compiler-directive (#if __IOS__) in the TaskDatabase class that is used to determine the correct filename for each platform.

audibeneappointment's People

Contributors

umairsheikh avatar

Watchers

 avatar  avatar

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.