Hi Team,
I am unable to bind Kendo ui grid from stored procedure using entity framework and I am able to bind kendo ui from table using entity framework.
PFB Code for bind
from table:
From Stored procedure:
kindly help me how to get this done using stored procedure.
thanks for advance.
Regards,
Mani
I am unable to bind Kendo ui grid from stored procedure using entity framework and I am able to bind kendo ui from table using entity framework.
PFB Code for bind
from table:
return tsmsent.TSMSDets
.OrderBy(tsms => tsms.Task)
.Select(tsms => new TimeSheetDetails
{
Task = tsms.Task,
Day1 = tsms.Day1,
Day2 = tsms.Day2,
Day3 = tsms.Day3,
Day4 = tsms.Day4,
Day5 = tsms.Day5,
Day6 = tsms.Day6,
Day7 = tsms.Day7
}).ToDataSourceResult(request.Take, request.Skip, request.Sort, request.Filter);
From Stored procedure:
return tsmsent.GetTimeSheet()
.OrderBy(tsms => tsms.Task)
.Select(tsms => new TimeSheetDetails
{
Task = tsms.Task,
Day1 = tsms.Day1,
Day2 = tsms.Day2,
Day3 = tsms.Day3,
Day4 = tsms.Day4,
Day5 = tsms.Day5,
Day6 = tsms.Day6,
Day7 = tsms.Day7
})
.AsQueryable().ToDataSourceResult(request.Take, request.Skip, request.Sort, request.Filter);
kindly help me how to get this done using stored procedure.
thanks for advance.
Regards,
Mani