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 Lotte Vos 8/16/1989 Kastanjelaan 98 2407 AB Utrecht
10002 Bram Peters 3/3/1979 Eikenlaan 45 2329 HI Utrecht
10003 Sara Peters 1/16/1995 Emmastraat 29 3044 GH Maastricht
10004 Sara Jansen 2/6/2002 Molenstraat 27 5580 RS Apeldoorn
10005 Lotte Jansen 6/9/1997 Nieuwstraat 88 2871 RS Amsterdam
10006 Daan Vos 9/21/1986 Eikenlaan 50 6990 CD Zwolle
10007 Daan de Groot 7/21/2012 Grote Markt 80 7568 DE Arnhem
10008 Sophie de Jong 5/13/1995 Nieuwstraat 93 1631 WX Maastricht
10009 Mees Smit 3/6/2010 Nieuwstraat 64 9482 MN Breda
10010 Sem Bakker 7/15/1969 Prins Bernhardstraat 44 7743 BC Assen
10011 Luuk de Groot 11/19/1968 Molenstraat 2 6316 HI Almere
10012 Liam de Groot 2/4/1990 Kerkstraat 91 3271 JK Den Bosch
10013 Bram van den Berg 7/4/1983 Markt 54 6814 NO Apeldoorn
10014 Yara Vos 4/8/2011 Wilhelminastraat 83 6863 QR Nijmegen
10015 Nora de Jong 11/18/1970 Industrieweg 27 6721 CD Vlissigen
10016 Tess Visser 2/26/1969 Julianastraat 89 2976 ST Leeuwarden
10017 Liam Vos 1/2/2016 Stationsweg 69 4726 UV Maastricht
10018 Luuk Meijer 9/25/2007 Parallelweg 67 6716 NO Maastricht
10019 Sem van Leeuwen 1/7/2005 Dorpsstraat 95 2353 XY Haarlem
10020 Zoë de Groot 4/2/2008 Kerkstraat 93 8860 BC Leeuwarden
10021 Levi Visser 11/21/1998 Grote Markt 57 3292 MN Breda
10022 Yara van den Berg 7/22/2010 Nieuwstraat 84 9497 GH Apeldoorn
10023 Luuk van den Berg 1/13/2019 Rembrandtstraat 58 1250 RS Leeuwarden
10024 Tess Bos 7/12/2007 Emmastraat 8 5823 KL Groningen
10025 Daan Smit 8/15/1957 Nieuwstraat 67 7889 RS Almere
10026 Daan Smit 6/12/2002 Rembrandtstraat 76 1453 UV Den Bosch
10027 Mila de Groot 1/10/1993 Wilhelminastraat 42 1256 AB Apeldoorn
10028 Mees Smit 4/23/1965 Dorpsstraat 96 8840 HI Leeuwarden
10029 Zoë Mulder 8/18/1972 Parallelweg 61 8593 KL Assen
10030 Zoë Smit 11/16/2010 Eikenlaan 93 6820 VW Utrecht
10031 Sem Meijer 1/1/1967 Beatrixstraat 47 2731 PQ Almere
10032 Zoë Visser 2/23/1985 Schoolstraat 69 6703 IJ Eindhoven
10033 Nora Visser 5/8/2003 Eikenlaan 49 1240 DE Enschede
10034 Lotte Vos 9/19/2017 Schoolstraat 36 1776 QR Lelystad
10035 Lotte Mulder 3/17/2004 Julianastraat 42 2039 OP Den Haag
10036 Noah Bakker 6/4/1962 Beatrixstraat 57 2691 HI Haarlem
An error has occurred. This application may no longer respond until reloaded. Reload 🗙