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 Liam de Boer 4/14/1959 Dorpsstraat 80 5345 PQ Arnhem
10002 Finn de Jong 5/15/1965 Markt 78 1891 LM Utrecht
10003 Lotte van den Berg 11/6/2006 Kastanjelaan 98 5826 MN Den Haag
10004 Yara Visser 1/17/1995 Parallelweg 29 4740 BC Maastricht
10005 Luuk van Leeuwen 4/11/1972 Beatrixstraat 11 3164 TU Almere
10006 Liam Meijer 5/10/1968 Markt 20 2045 ST Vlissigen
10007 Levi de Vries 4/5/1964 Rembrandtstraat 58 8507 FG Lelystad
10008 Lotte de Boer 3/6/1963 Eikenlaan 59 1744 HI Lelystad
10009 Bram van Leeuwen 7/20/2018 Schoolstraat 54 5948 GH Apeldoorn
10010 Nora van den Berg 6/27/2013 Schoolstraat 49 2277 JK Groningen
10011 Sophie Visser 2/5/2002 Industrieweg 45 2950 YZ Leeuwarden
10012 Liam Meijer 7/9/1992 Sportlaan 93 8186 BC Leeuwarden
10013 Sem Bos 7/5/1997 Beatrixstraat 87 8963 CD Apeldoorn
10014 Lucas Mulder 3/4/1985 Julianastraat 6 4615 YZ Maastricht
10015 Noah de Jong 3/2/1986 Markt 63 8837 YZ Almere
10016 Mila Mulder 5/14/1956 Industrieweg 87 1833 JK Assen
10017 Bram Bos 10/24/1982 Rembrandtstraat 12 9756 RS Zwolle
10018 Finn Hendriks 9/13/1965 Wilhelminastraat 15 3679 FG Arnhem
10019 Noah Vos 4/23/2000 Beukenlaan 18 2998 GH Vlissigen
10020 Mees Hendriks 2/16/2010 Beatrixstraat 18 4713 JK Zwolle
10021 Luuk Vos 5/15/1983 Parallelweg 12 3275 JK Assen
10022 Sem Jansen 1/7/1988 Schoolstraat 76 6609 HI Vlissigen
10023 Liam Smit 3/9/1951 Dorpsstraat 98 9886 QR Eindhoven
10024 Sara Smit 8/25/1962 Beatrixstraat 1 7375 BC Vlissigen
10025 Liam Meijer 5/27/1982 Beatrixstraat 76 4779 JK Maastricht
10026 Finn van Leeuwen 1/27/1994 Julianastraat 65 3065 LM Almere
10027 Lotte van den Berg 2/4/1953 Nieuwstraat 45 5021 FG Eindhoven
10028 Daan van Leeuwen 5/22/1961 Beatrixstraat 14 7006 OP Arnhem
10029 Daan van den Berg 10/1/1986 Sportlaan 79 4179 QR Den Haag
10030 Noah de Vries 9/18/1967 Parallelweg 23 6007 GH Amsterdam
10031 Yara Bos 11/10/1997 Julianastraat 99 9376 AB Maastricht
10032 Liam Hendriks 7/26/2014 Dorpsstraat 65 2998 MN Den Haag
10033 Sem Bos 5/2/1960 Emmastraat 85 1204 MN Den Haag
10034 Finn Vos 6/24/1999 Wilhelminastraat 27 5561 KL Leeuwarden
10035 Tess Vos 6/12/1957 Rembrandtstraat 6 4324 IJ Breda
10036 Emma Peters 10/7/1997 Beatrixstraat 76 5238 OP Haarlem
An error has occurred. This application may no longer respond until reloaded. Reload 🗙