.net - need help in linq -


i need in linq

from refoffence in ref_offencecodes join offencecodematrix in inf_offencecodematrixes on refoffence.offencecodeid equals offencecodematrix.offencecodeid refoffence.code=="1909" select new {offencecodematrix.standardpenaltyunits * offencecodematrix.standarddollaramount } 

i need muliplication of standardpenaltyunits , standarddollaramount result.

please debug query.

well, 1 problem you're trying create anonymous type multiplication operation, you're not specifying name. why using anonymous type @ all? try:

from offencecode in ref_offencecodes join codematrix in inf_offencecodematrixes on offencecode.offencecodeid equals codematrix.offencecodeid offencecode.code=="1909" select codematrix.standardpenaltyunits * offencecode.standarddollaramount 

however, it's hard tell what's wrong provided failing code, without indication of way in it's failing. final line was problem, may not have been one.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -