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 Vos 5/22/2004 Nieuwstraat 42 4225 VW Breda
10002 Tess de Jong 7/10/1964 Emmastraat 45 3698 UV Eindhoven
10003 Noah Hendriks 4/12/1966 Stationsweg 29 8638 CD Den Haag
10004 Daan Meijer 3/12/2013 Parallelweg 16 8263 WX Almere
10005 Tess van den Berg 11/23/2007 Julianastraat 94 9090 NO Arnhem
10006 Levi Vos 10/20/1969 Stationsweg 49 2368 YZ Den Haag
10007 Nora Meijer 2/26/1985 Wilhelminastraat 80 5881 GH Den Haag
10008 Sem van den Berg 6/16/1999 Parallelweg 63 7962 TU Apeldoorn
10009 Sem Bakker 3/19/1955 Emmastraat 75 3332 PQ Leeuwarden
10010 Bram Bakker 1/4/2010 Emmastraat 88 2568 OP Lelystad
10011 Liam Bos 8/25/2006 Kerkstraat 77 5139 RS Utrecht
10012 Lucas van den Berg 10/11/2017 Kerkstraat 11 1819 OP Arnhem
10013 Sem de Groot 2/11/2003 Schoolstraat 22 4720 EF Utrecht
10014 Lucas de Vries 4/16/1981 Rembrandtstraat 86 7946 UV Haarlem
10015 Sophie de Groot 6/3/1964 Julianastraat 96 8947 VW Leeuwarden
10016 Finn Bakker 8/10/1990 Industrieweg 52 2240 TU Apeldoorn
10017 Finn van Leeuwen 9/27/1959 Kerkstraat 24 8063 NO Enschede
10018 Zoë Visser 11/5/1979 Grote Markt 20 4855 VW Almere
10019 Lucas Bos 9/17/1986 Kerkstraat 41 2191 UV Amsterdam
10020 Julia de Jong 1/7/2018 Schoolstraat 7 1622 GH Den Bosch
10021 Yara Mulder 7/14/2006 Rembrandtstraat 19 5613 MN Utrecht
10022 Yara Jansen 10/16/1969 Prins Bernhardstraat 97 7317 KL Amsterdam
10023 Bram van Leeuwen 4/20/2016 Molenstraat 28 7010 NO Arnhem
10024 Luuk Mulder 5/22/2012 Molenstraat 52 5792 EF Leeuwarden
10025 Nora Bakker 7/4/1977 Schoolstraat 52 4671 TU Leeuwarden
10026 Zoë Smit 11/3/1967 Sportlaan 40 7691 CD Amsterdam
10027 Bram Bos 4/6/1994 Emmastraat 1 3375 IJ Leeuwarden
10028 Tess Bos 11/22/1955 Sportlaan 11 2693 IJ Breda
10029 Lucas Jansen 4/25/1953 Emmastraat 92 1981 EF Utrecht
10030 Zoë Hendriks 1/6/1988 Schoolstraat 64 1988 DE Den Bosch
10031 Zoë Bos 2/12/1958 Kerkstraat 11 6617 MN Eindhoven
10032 Yara van den Berg 11/1/1988 Kerkstraat 66 3214 RS Breda
10033 Noah van den Berg 4/20/2001 Wilhelminastraat 13 2794 NO Apeldoorn
10034 Sem van Leeuwen 2/6/2001 Stationsweg 61 4708 CD Nijmegen
10035 Levi Jansen 8/26/1961 Molenstraat 50 2822 IJ Vlissigen
10036 Luuk de Jong 9/18/1986 Wilhelminastraat 44 7452 BC Den Haag
An error has occurred. This application may no longer respond until reloaded. Reload 🗙