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 Sophie van den Berg 10/25/1992 Nieuwstraat 59 6056 FG Lelystad
10002 Daan de Groot 4/20/1999 Eikenlaan 71 1456 JK Zwolle
10003 Lotte van den Berg 2/15/1956 Kerkstraat 3 3801 JK Enschede
10004 Luuk de Jong 2/4/1971 Eikenlaan 1 8313 RS Groningen
10005 Lucas Mulder 7/14/1980 Markt 94 8171 WX Zwolle
10006 Lotte Bakker 2/7/2010 Beatrixstraat 2 1348 IJ Arnhem
10007 Levi Visser 2/8/1962 Julianastraat 5 2852 OP Groningen
10008 Sophie de Vries 1/6/1988 Dorpsstraat 36 9317 KL Maastricht
10009 Emma Smit 3/19/1980 Wilhelminastraat 68 5021 RS Leeuwarden
10010 Nora de Boer 8/23/1950 Markt 60 4041 CD Nijmegen
10011 Luuk Jansen 8/20/1964 Schoolstraat 7 7206 OP Apeldoorn
10012 Julia de Jong 11/6/1974 Kastanjelaan 31 2685 MN Maastricht
10013 Luuk de Groot 1/2/1993 Stationsweg 66 1677 EF Amsterdam
10014 Emma de Vries 8/22/1978 Kastanjelaan 15 7406 JK Arnhem
10015 Zoë Bos 2/16/1989 Prins Bernhardstraat 2 2857 GH Enschede
10016 Luuk Mulder 7/16/1996 Kastanjelaan 59 6484 LM Haarlem
10017 Bram Hendriks 9/7/1997 Kastanjelaan 4 5165 MN Arnhem
10018 Sem van Leeuwen 6/14/1974 Sportlaan 14 4134 AB Enschede
10019 Emma de Vries 6/4/2000 Schoolstraat 67 8063 KL Amsterdam
10020 Sara Peters 5/22/1981 Beatrixstraat 9 7272 OP Amsterdam
10021 Levi van Leeuwen 8/6/1954 Beatrixstraat 76 2379 CD Assen
10022 Zoë Smit 6/25/2016 Schoolstraat 8 3919 TU Utrecht
10023 Mila Bos 6/11/1982 Molenstraat 98 6766 NO Zwolle
10024 Liam de Vries 10/23/2006 Schoolstraat 26 9583 MN Apeldoorn
10025 Zoë Peters 10/9/1968 Prins Bernhardstraat 22 3682 ST Groningen
10026 Noah Peters 8/6/1965 Kerkstraat 11 4622 VW Leeuwarden
10027 Mees Smit 6/23/1992 Beatrixstraat 64 2688 IJ Almere
10028 Bram Visser 4/3/1955 Eikenlaan 81 3939 UV Enschede
10029 Levi Meijer 5/27/1991 Kerkstraat 82 3874 JK Assen
10030 Lucas Meijer 1/8/1994 Nieuwstraat 88 3733 NO Arnhem
10031 Finn Mulder 7/4/1988 Prins Bernhardstraat 52 5350 LM Almere
10032 Yara de Vries 3/23/1993 Wilhelminastraat 54 6769 EF Enschede
10033 Lucas de Boer 4/5/2015 Beatrixstraat 24 5943 MN Amsterdam
10034 Liam Meijer 5/16/1999 Kastanjelaan 81 7641 NO Groningen
10035 Zoë de Vries 9/13/1974 Julianastraat 35 7534 MN Lelystad
10036 Lucas Vos 10/25/2018 Beukenlaan 73 9357 BC Enschede
An error has occurred. This application may no longer respond until reloaded. Reload 🗙