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 Nora de Vries 8/7/1999 Markt 39 5480 OP Vlissigen
10002 Nora Meijer 4/3/1972 Rembrandtstraat 54 9404 EF Enschede
10003 Sophie Visser 1/5/1988 Nieuwstraat 9 7769 OP Groningen
10004 Lotte Vos 6/17/1958 Emmastraat 69 7151 GH Lelystad
10005 Mila Vos 9/15/2012 Dorpsstraat 40 6720 LM Den Haag
10006 Sara de Vries 2/13/2007 Parallelweg 20 4450 TU Utrecht
10007 Lotte Peters 7/15/1953 Kerkstraat 33 5808 HI Almere
10008 Noah Vos 9/14/1981 Rembrandtstraat 50 6575 TU Almere
10009 Sophie van den Berg 9/11/1964 Beukenlaan 4 3973 TU Arnhem
10010 Julia de Boer 11/13/1982 Beatrixstraat 98 4937 CD Zwolle
10011 Lotte Bos 8/21/2006 Nieuwstraat 87 8011 OP Zwolle
10012 Noah Smit 10/26/1985 Beukenlaan 65 1402 GH Lelystad
10013 Nora Smit 8/9/1993 Industrieweg 61 6745 OP Lelystad
10014 Lotte van Leeuwen 10/3/1972 Eikenlaan 19 8330 IJ Zwolle
10015 Bram Bakker 1/25/1958 Sportlaan 64 6501 ST Breda
10016 Bram Visser 1/10/1963 Eikenlaan 72 4729 DE Nijmegen
10017 Liam de Groot 9/18/2006 Molenstraat 57 4039 EF Utrecht
10018 Levi Smit 11/6/1997 Markt 68 4669 WX Enschede
10019 Tess de Groot 10/21/1951 Stationsweg 99 4350 GH Zwolle
10020 Liam de Jong 5/16/1961 Schoolstraat 54 1777 VW Haarlem
10021 Finn Smit 8/15/2019 Wilhelminastraat 93 8331 TU Nijmegen
10022 Emma Peters 1/25/1955 Parallelweg 90 4110 QR Apeldoorn
10023 Bram de Groot 4/5/1981 Emmastraat 86 3737 ST Assen
10024 Lotte Smit 4/18/2010 Beukenlaan 54 3761 ST Eindhoven
10025 Tess Bos 9/13/2018 Rembrandtstraat 33 2387 YZ Breda
10026 Julia Jansen 9/22/1988 Prins Bernhardstraat 42 5809 NO Almere
10027 Julia Bos 7/4/1974 Nieuwstraat 6 6396 UV Zwolle
10028 Yara van Leeuwen 9/11/1990 Julianastraat 24 7718 BC Leeuwarden
10029 Lotte van Leeuwen 9/15/1952 Beatrixstraat 34 8462 PQ Leeuwarden
10030 Nora de Jong 6/7/1989 Emmastraat 11 3981 FG Arnhem
10031 Lotte Visser 3/20/1956 Sportlaan 86 7062 VW Lelystad
10032 Mees de Jong 2/12/1958 Kerkstraat 77 7338 IJ Haarlem
10033 Nora Hendriks 4/22/1971 Kerkstraat 37 9556 BC Leeuwarden
10034 Noah Bos 11/7/2007 Julianastraat 25 8546 MN Amsterdam
10035 Emma Jansen 10/9/1961 Molenstraat 62 8159 DE Enschede
10036 Liam Hendriks 6/20/1965 Parallelweg 69 3626 NO Lelystad
An error has occurred. This application may no longer respond until reloaded. Reload 🗙