| 123456789101112131415161718192021222324252627 |
- using System;
- using Comal.Classes;
- namespace PRS.Mobile
- {
- public class ContactShell : Shell<ContactModel, Contact>
- {
- protected override void ConfigureColumns(ShellColumns<ContactModel, Contact> columns)
- {
- columns
- .Map(nameof(ID), x => x.ID)
- .Map(nameof(Name), x => x.Name)
- .Map(nameof(Street), x => x.Address.Street)
- .Map(nameof(City), x => x.Address.City)
- .Map(nameof(State), x => x.Address.State)
- .Map(nameof(PostCode), x => x.Address.PostCode);
- }
- public Guid ID => Get<Guid>();
- public String Name => Get<String>();
- public String Street => Get<String>();
- public String City => Get<String>();
- public String State => Get<String>();
- public String PostCode => Get<String>();
-
- }
- }
|