EF data GroupBY multi-field query VB.NET and C # reference

Dim g = lst.Data.GroupBy(Function(T) New With

{
T.mName,
T.mUnit,
T.mPrice
}).Select(
Function(t) New With
{
.mName
= t.Key.mName,
.mPrice
= t.Key.mPrice,
.mUnit
= t.Key.mUnit,
.mValue
= t.Sum(Function(i) i.mValue )
})

c#version comparison

{

var g = lst.Data.GroupBy(T => new< /span>
{
T.mName,
T.mUnit,
T.mPrice
}).Select(t
=> new
{
mName
= t.Key.mName,
mPrice
= t.Key.mPrice,
mUnit
= t.Key.mUnit,
mValue
= t.Sum(i => i.mValue)
});
}

Dim g = lst.Data. GroupBy(Function(T) New With

{
T.mName,
T.mUnit,
T.mPrice
}).Select(
Function(t) New With
{
.mName
= t.Key.mName,
.mPrice
= t.Key.mPrice,
.mUnit
= t.Key.mUnit,
.mValue
= t.Sum(Function(i) i.mValue )
})

{

var g = lst.Data.GroupBy(T => new< /span>
{
T.mName,
T.mUnit,
T.mPrice
}).Select(t
=> new
{
mName
= t.Key.mName,
mPrice
= t.Key.mPrice,
mUnit
= t.Key.mUnit,
mValue
= t.Sum(i => i.mValue)
});
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3370 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.