TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
asif tariq
NA
148
17.2k
# linq query mvc
Jan 10 2020 1:28 PM
i want to show data
like image
var multable1 = db.Cases.Include("Payer").Where(x => x.CompanyID == comid)
.GroupBy(p => new {p.Payer.PayerName,p.ReceievedDate.Value.Year })
.Select(g => new CompanyUserViewModelforavgpayer
{
PayorName = g.Key.PayerName,
receieveddate = g.Key.Year,
twothousndeighteen =(double)g.Sum(w=>w.TotalCollection),
}).ToList();
but my linq query show result
how we show result like first image using linq query
Reply
Answers (
3
)
Repeated sqlparameter's values not allowed. How to resolv?
I am building code First Approach project .net core