Git Product home page Git Product logo

xamarintodo's Introduction

Xamarin.Forms Todo Sample: .NET Standard & EF Core Ed.

This is an adapted version of the Xamarin.Forms Todo sample (repository), with the following key changes:

  1. Instead of using the SQLite.Net PCL ORM for accessing SQLite, this version uses Entity Framework Core (repository), since EF Core recently started working on Xamarin.iOS. Jon Douglas' post and sample Building Android Apps with Entity Framework informed on this.

  2. Instead of a Portable Class Library (PCL), app shared code is contained in a .NET Standard 1.4 library project. Oren Novotny's post on Using Xamarin Forms with .NET Standard โ€” VS 2017 Edition informed on this.

  3. For iOS in particular, the project is configured for "Link Framework SDKs Only", as opposed to not linking. Notice the LinkDescription.xml includes some reflected types referenced by EF Core at runtime. Intersoft's post Configure Linker in Production-Ready Application Release Build informed on this.

The sample app projects compile for and run successfully on each of Android, iOS, and UWP physical devices.

You can use either Visual Studio 2017 (PC) v15.2+ or Visual Studio 2017 for Mac v7.0+ to open the solution and compile the apps; of course, the UWP project only compiles in the PC edition.

I posted about this at the Xamarin Cross Platform with Xamarin forum and welcome comments there.

Regards,

Chris W. Rea
@cwrea


License

This adapted sample inherits the Apache License 2.0 from the original sample:

Copyright 2011 Xamarin Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Original README.md follows:

Todo

This sample demonstrates a Todo list application where the data is stored and accessed in a local SQLite database.

The app functionality is:

  • View a list of tasks.
  • Add a new item to the list of tasks.
  • Set a task's status to 'completed'.

In all cases the tasks are stored in a local SQLite database.

For more information about the sample see Working with a Local Database.

Authors

Craig Dunn, Bryan Costanich

xamarintodo's People

Contributors

cwrea avatar

Watchers

James Cloos avatar Ladislav Sopko 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.