.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

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -