First of all, we can create a new Xamarin.Forms PCL project and reuse the same base structure that we created in Chapter 4, Data – the Monkeys Catalog.
We can copy all the classes we've written inside the Base
folder and we can prepare the empty subfolders of Core
to define the business logic of our project.
To use the Base classes, we need to import into our projects the SQLite.Net PCL from the NuGet Package manager. It is a good practice to update all the packages before you start. As soon as a new package has been updated, we will be notified in the Packages
folder. To update the package, right-click on the Packages
folder and select Update
from the contextual menu.
We can create, in the Business
subfolder of the Core
, the MenuItem
class that contains the properties of the available items to order. A MenuItem
will have the following:
Name
Price
RequiredSeconds
The class will be developed as follows:
public class MenuItem : BaseEntity<int> ...