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 Emma Hendriks 3/20/2003 Julianastraat 94 9098 TU Almere
10002 Nora van den Berg 2/23/1957 Parallelweg 63 5108 ST Assen
10003 Daan Smit 1/7/1998 Nieuwstraat 76 6316 UV Eindhoven
10004 Lucas Vos 6/2/1966 Emmastraat 15 6874 HI Zwolle
10005 Mees van Leeuwen 6/27/1962 Beukenlaan 24 7486 TU Maastricht
10006 Emma Jansen 4/5/1952 Julianastraat 67 4227 GH Assen
10007 Yara Meijer 1/23/1966 Prins Bernhardstraat 3 9160 NO Assen
10008 Sem de Jong 8/7/1975 Sportlaan 33 5353 MN Enschede
10009 Liam Visser 6/22/2004 Julianastraat 83 9613 UV Lelystad
10010 Lotte Jansen 4/14/1985 Wilhelminastraat 41 9717 TU Nijmegen
10011 Zoë van Leeuwen 2/19/1975 Industrieweg 7 8783 JK Enschede
10012 Lucas Bakker 8/12/1984 Stationsweg 65 2255 CD Apeldoorn
10013 Bram Smit 5/20/1971 Dorpsstraat 69 6488 AB Maastricht
10014 Mila Smit 4/9/1963 Nieuwstraat 1 6668 FG Utrecht
10015 Sara de Groot 4/24/1957 Emmastraat 9 9170 XY Haarlem
10016 Luuk Visser 6/20/1958 Parallelweg 5 3960 LM Arnhem
10017 Emma Smit 10/27/1975 Beatrixstraat 33 5147 JK Haarlem
10018 Noah de Vries 9/5/1983 Industrieweg 37 1310 EF Lelystad
10019 Lucas Meijer 4/9/1960 Beatrixstraat 38 9517 ST Den Haag
10020 Sem Vos 3/9/2001 Eikenlaan 29 7388 JK Eindhoven
10021 Zoë Meijer 2/11/1983 Emmastraat 45 3239 MN Den Bosch
10022 Julia Meijer 2/27/2012 Eikenlaan 89 7296 AB Apeldoorn
10023 Sara Smit 9/9/1958 Prins Bernhardstraat 4 3388 UV Apeldoorn
10024 Daan Bakker 10/5/1969 Emmastraat 31 6694 CD Maastricht
10025 Tess de Vries 1/17/1951 Beukenlaan 52 1532 ST Groningen
10026 Emma Peters 10/5/1989 Julianastraat 77 3912 RS Almere
10027 Bram van Leeuwen 2/23/1962 Parallelweg 73 5322 PQ Arnhem
10028 Lotte Meijer 7/15/1956 Kerkstraat 99 4520 KL Leeuwarden
10029 Luuk de Vries 6/25/1987 Beukenlaan 26 8333 HI Apeldoorn
10030 Noah de Vries 1/20/2010 Sportlaan 83 7250 PQ Lelystad
10031 Tess de Boer 8/1/1957 Grote Markt 49 6320 IJ Breda
10032 Lucas Peters 5/17/2018 Julianastraat 11 8999 QR Vlissigen
10033 Lucas van den Berg 3/12/1955 Rembrandtstraat 17 6031 NO Vlissigen
10034 Luuk de Jong 8/26/1987 Rembrandtstraat 51 6603 WX Lelystad
10035 Bram Peters 9/5/1975 Industrieweg 17 4648 HI Den Bosch
10036 Zoë de Jong 8/4/1989 Prins Bernhardstraat 27 2811 EF Amsterdam
An error has occurred. This application may no longer respond until reloaded. Reload 🗙