Home / List of Contacts

Code Requirements

The datagrid as displayed below requires the following code:

XML
@inject IContactsService Service

<EZTable Recordset="@recordset" TModel="Contact">
    <EZTableColumn Field="@nameof(context.Id)" Hyperlink="EditContact/{0}" />
    <EZTableColumn Field="@nameof(context.Name)" />
    <EZTableColumn Field="@nameof(context.Birthday)" />
    <EZTableColumn Field="@nameof(context.Address)" />
    <EZTableColumn Field="@nameof(context.PostalCode)" />
    <EZTableColumn Field="@nameof(context.City)" />
</EZTable>    

@code {
    private EZRecordset<Contact>? recordset;

    protected override void OnInitialized()
    {
        recordset = new(new EZRecordsetConfiguration<Contact>(Service));
        base.OnInitialized();
    }

}
                            

List of Contacts

Id Name Birthday Address Postal code City
10001 Liam Peters 10/20/1990 Grote Markt 62 5249 WX Den Bosch
10002 Yara de Groot 10/13/2007 Rembrandtstraat 33 9268 GH Nijmegen
10003 Mila Peters 9/25/1963 Emmastraat 18 2927 ST Lelystad
10004 Julia Peters 2/20/1964 Industrieweg 6 7616 EF Vlissigen
10005 Tess van den Berg 5/15/1954 Beatrixstraat 6 7730 IJ Vlissigen
10006 Zoë Bos 11/2/1985 Grote Markt 79 3290 CD Nijmegen
10007 Mila Hendriks 1/5/1992 Grote Markt 81 6398 RS Eindhoven
10008 Daan Visser 8/8/2009 Kerkstraat 54 3073 HI Haarlem
10009 Finn de Jong 1/22/1989 Nieuwstraat 32 5313 OP Groningen
10010 Lucas Mulder 5/12/1990 Julianastraat 34 8489 MN Breda
10011 Lucas Jansen 4/7/1984 Markt 59 4652 BC Eindhoven
10012 Bram Smit 9/18/2013 Beukenlaan 57 2827 HI Nijmegen
10013 Emma van Leeuwen 5/13/2017 Grote Markt 17 2197 WX Arnhem
10014 Julia de Jong 5/5/1978 Emmastraat 86 6631 RS Lelystad
10015 Levi de Jong 9/9/2016 Rembrandtstraat 41 7660 BC Breda
10016 Julia Visser 5/5/1950 Eikenlaan 69 7985 HI Enschede
10017 Sophie Bakker 5/10/1999 Markt 56 7855 AB Arnhem
10018 Sophie Smit 2/23/1980 Markt 8 5409 WX Maastricht
10019 Sem de Boer 1/3/2009 Kerkstraat 8 2334 LM Leeuwarden
10020 Tess van Leeuwen 3/23/1975 Stationsweg 45 4313 HI Breda
10021 Sem Bakker 1/13/1952 Parallelweg 54 2339 MN Leeuwarden
10022 Emma de Boer 11/3/1971 Beatrixstraat 74 2840 BC Almere
10023 Lucas van Leeuwen 11/6/2014 Kerkstraat 87 7986 FG Groningen
10024 Tess de Vries 10/10/2017 Molenstraat 71 6720 EF Breda
10025 Daan de Boer 3/10/2005 Nieuwstraat 33 5301 HI Zwolle
10026 Liam Peters 10/23/1992 Industrieweg 97 6723 BC Zwolle
10027 Lotte Vos 8/6/2016 Nieuwstraat 36 9658 ST Vlissigen
10028 Yara Smit 8/9/2013 Wilhelminastraat 73 5636 MN Leeuwarden
10029 Lotte Hendriks 3/15/1990 Rembrandtstraat 54 9053 WX Nijmegen
10030 Tess Bos 1/2/1955 Dorpsstraat 99 6385 EF Arnhem
10031 Mila van Leeuwen 6/19/1990 Eikenlaan 44 7192 QR Amsterdam
10032 Luuk van Leeuwen 8/21/2016 Markt 96 4748 UV Haarlem
10033 Mees van Leeuwen 1/16/1989 Stationsweg 59 6773 KL Almere
10034 Zoë de Boer 4/20/1986 Parallelweg 31 9283 HI Maastricht
10035 Sara Smit 3/21/1961 Eikenlaan 60 7639 GH Haarlem
10036 Julia Bakker 6/7/2009 Kastanjelaan 3 6573 FG Haarlem
An error has occurred. This application may no longer respond until reloaded. Reload 🗙