Convert to VB .Net syntax.

  • Thread starter Thread starter Karthik
  • Start date Start date
K

Karthik

Hi,
Can any one help me to change the below code to VB .Net?

var(query = From row In dtInvoice.AsEnumerable())
group row by new { InvNo = row.Field< string >( "InvNo" ),
EmpUNID = row.Field< decimal >( "EmployeeUNID" )} into grp
OrderBy(grp.Key.InvNo)
select new
{
Key = grp.Key,
InvNo = grp.Key.InvNo,
EmpID = grp.Key.EmpUNID,
TotalCost = grp.Sum(r => r.Field< decimal >( "TotalCost" )),
TotalRev = grp.Sum(r => r.Field< decimal >( "TotalRev" ))
}

Thanks and regards,
Karthik.C
 
Can any one help me to change the below code to VB .Net?

I don't personally have the time, but consider this my "teaching a man to
fish" good deed for the day.

Download Reflector from Red Gate (http://reflector.red-gate.com). Put the
code in a C# project and make sure everything referenced exists (the
datasets, entities, etc). Then compile and open the assembly in reflector.
Choose VB from the drop down and you have code in VB.

It is, honestly, one of my top 10 tools for .NET development. Perhaps #1
outside of Visual Studio. I wrote about it here:
http://snurl.com/taqbt

Peace and Grace,
Greg

--
Vote for Miranda's Christmas Story
http://tinyurl.com/mirandabelieve

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top