Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 11, 2012 03:30 PM by WebAppArchitect
Jul 10, 2012 06:43 PM|LINK
Dim intEmpCritGID As Int32 = DirectCast(e.Row.DataItem, DataRowView).Row.ItemArray(0)
Dim result1 = (From c In Criteria.EmployeeCriteriaInfo
Where c.Field(Of Integer)("EmpCritGID").Equals(intEmpCritGID)
Select c.Field(Of Boolean)("CritOrgFlag"))
I have been playing around with method syntax and how I was writing it was too long. I knew I was doing something wrong so I went back to this syntax.
Jul 10, 2012 08:56 PM|LINK
I dont think so.
Dim result1 = (Criteria.EmployeeCriteriaInfo.Where( c => c.Field(Of Integer)("EmpCritGID").Equals(intEmpCritGID) ).Select( c => c.Field(Of Boolean)("CritOrgFlag")))
Jul 11, 2012 06:04 AM|LINK
better approach is your second post using lambda....
Jul 11, 2012 03:30 PM|LINK
Thanks for the feebback everbody!