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 Mees de Jong 1/25/1968 Schoolstraat 23 7747 OP Zwolle
10002 Sara Meijer 4/10/2013 Wilhelminastraat 79 6787 QR Leeuwarden
10003 Liam Smit 7/10/1992 Beukenlaan 69 5589 GH Assen
10004 Mees Bakker 3/3/1968 Schoolstraat 36 7926 BC Assen
10005 Mees de Boer 9/25/2008 Julianastraat 25 1153 VW Maastricht
10006 Mees Peters 10/7/1973 Wilhelminastraat 96 7968 BC Assen
10007 Nora Bos 11/26/1968 Molenstraat 53 7768 YZ Apeldoorn
10008 Noah Vos 9/19/1953 Rembrandtstraat 7 8300 NO Breda
10009 Luuk Hendriks 1/1/1980 Molenstraat 6 2178 AB Utrecht
10010 Mees Jansen 2/13/2003 Kerkstraat 87 7423 AB Nijmegen
10011 Zoë Meijer 2/6/2019 Beukenlaan 81 1733 ST Den Haag
10012 Lucas van Leeuwen 6/24/1993 Industrieweg 77 5499 LM Vlissigen
10013 Bram Jansen 3/21/2000 Schoolstraat 97 6302 IJ Assen
10014 Sara de Groot 7/12/1960 Wilhelminastraat 70 8345 AB Apeldoorn
10015 Tess Bakker 5/12/1965 Emmastraat 36 7019 HI Enschede
10016 Mila Smit 1/10/1956 Parallelweg 93 3184 NO Groningen
10017 Julia Jansen 3/5/2007 Beatrixstraat 10 3016 XY Maastricht
10018 Levi Jansen 6/15/2006 Stationsweg 57 6882 KL Enschede
10019 Emma Bos 1/21/2013 Markt 92 8159 ST Apeldoorn
10020 Daan Vos 1/23/1952 Kerkstraat 40 7519 RS Eindhoven
10021 Noah van Leeuwen 10/10/1965 Sportlaan 29 4285 GH Amsterdam
10022 Lotte Smit 2/19/1957 Wilhelminastraat 67 8128 VW Amsterdam
10023 Julia de Jong 9/15/1978 Schoolstraat 90 6491 ST Vlissigen
10024 Liam Vos 8/6/1966 Industrieweg 83 1220 VW Enschede
10025 Sem Mulder 4/9/1963 Wilhelminastraat 99 5139 CD Den Bosch
10026 Nora de Groot 3/26/1997 Markt 12 2601 ST Leeuwarden
10027 Daan van den Berg 10/4/1963 Eikenlaan 9 3385 XY Haarlem
10028 Mees de Jong 3/23/1977 Nieuwstraat 24 2711 IJ Breda
10029 Lotte Peters 2/16/1985 Grote Markt 51 3928 RS Assen
10030 Finn Smit 9/20/2007 Beatrixstraat 82 5548 TU Lelystad
10031 Emma Bos 4/21/1976 Markt 57 6256 YZ Den Bosch
10032 Noah Bakker 4/22/2009 Julianastraat 16 7896 GH Den Haag
10033 Sara Mulder 3/11/2011 Kerkstraat 24 4472 ST Utrecht
10034 Bram Vos 1/16/2015 Wilhelminastraat 35 7004 RS Breda
10035 Sophie Smit 9/23/1986 Eikenlaan 2 6538 TU Lelystad
10036 Noah Smit 4/22/1957 Dorpsstraat 79 3845 KL Lelystad
An error has occurred. This application may no longer respond until reloaded. Reload 🗙