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 de Vries 3/14/2012 Dorpsstraat 32 9058 IJ Arnhem
10002 Noah de Jong 5/9/2005 Wilhelminastraat 56 2383 LM Assen
10003 Emma Visser 6/24/2019 Grote Markt 19 4314 XY Assen
10004 Zoë Meijer 1/20/1963 Emmastraat 57 3585 IJ Maastricht
10005 Sara Peters 1/18/1993 Kerkstraat 57 1550 XY Leeuwarden
10006 Mila van Leeuwen 8/20/1977 Industrieweg 58 4458 RS Enschede
10007 Levi de Vries 7/20/1960 Beatrixstraat 57 4541 JK Maastricht
10008 Tess de Groot 4/7/1987 Grote Markt 5 2852 YZ Vlissigen
10009 Liam Meijer 3/9/1992 Beatrixstraat 89 3428 WX Amsterdam
10010 Tess Bakker 4/21/1965 Schoolstraat 85 6422 QR Amsterdam
10011 Daan Bakker 7/27/1990 Grote Markt 90 4190 JK Den Bosch
10012 Levi Hendriks 3/8/2002 Schoolstraat 78 8962 RS Almere
10013 Lotte de Vries 9/13/1980 Nieuwstraat 28 4038 AB Enschede
10014 Mila Mulder 8/12/2019 Schoolstraat 59 2626 HI Apeldoorn
10015 Lotte Peters 5/6/1997 Nieuwstraat 77 4002 HI Den Haag
10016 Lucas de Groot 6/25/1951 Julianastraat 98 7533 DE Lelystad
10017 Bram Hendriks 5/19/1972 Grote Markt 81 5844 JK Assen
10018 Nora van Leeuwen 3/17/1964 Emmastraat 55 5823 ST Assen
10019 Luuk Meijer 5/5/1954 Julianastraat 39 9037 MN Den Bosch
10020 Levi Jansen 9/19/1992 Kerkstraat 88 1145 EF Assen
10021 Luuk van Leeuwen 9/23/2016 Beukenlaan 24 3211 YZ Arnhem
10022 Sara de Vries 5/14/1952 Grote Markt 72 9727 YZ Breda
10023 Liam Peters 8/23/1952 Grote Markt 76 2335 WX Lelystad
10024 Bram de Jong 7/11/2010 Industrieweg 42 9236 RS Apeldoorn
10025 Emma Mulder 2/24/1961 Beatrixstraat 39 1428 QR Haarlem
10026 Julia Meijer 3/27/1954 Dorpsstraat 38 1329 VW Haarlem
10027 Lucas Bakker 9/4/1959 Molenstraat 7 5640 ST Enschede
10028 Zoë Jansen 5/25/1985 Grote Markt 5 4780 OP Nijmegen
10029 Finn Mulder 2/13/2002 Industrieweg 37 5246 AB Arnhem
10030 Noah Peters 7/18/1968 Parallelweg 90 4409 EF Amsterdam
10031 Zoë de Jong 8/19/2006 Prins Bernhardstraat 39 6258 BC Breda
10032 Sem de Jong 1/8/1967 Julianastraat 92 5878 MN Assen
10033 Mila Mulder 2/6/1976 Industrieweg 51 2066 WX Eindhoven
10034 Emma Jansen 3/21/2000 Stationsweg 63 8399 EF Maastricht
10035 Luuk Mulder 1/10/1999 Molenstraat 97 7464 DE Den Haag
10036 Yara Mulder 4/22/2002 Beukenlaan 28 6781 UV Amsterdam
An error has occurred. This application may no longer respond until reloaded. Reload 🗙