|
<SfGrid DataSource="@titles" TValue="IEmployeeTitleModel" AllowSorting="true" AllowExcelExport="true"...>
...
</SfGrid>
|
Hi Renjith,You're suggestion helped get me down the right path and expose a few more flaws I had in my adaptor class. I've now been able to break out my adaptor into its own class and make all the appropriate calls to the database.Thanks for the helpful advice!
Hi Tarik,
We have prepared a sample based on the above suggestion for your convenience. Please download the sample from the link below,And also we suggest you to refer to our documentation for more details regarding this topic,Please get back to us if you need further assistance.
Regards,Renjith Singh Rajendran.
|
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddSyncfusionBlazor();
services.AddSingleton<WeatherForecastService>();
services.AddScoped<OrderDataAdaptor>();
} |
|
public IAreaService _AreaService;
//define parameter-less constructor
public AreaAdaptor() {
}
public AreaAdaptor(IAreaService areaService)
{
_AreaService = areaService;
}
|