I want to write an dynamic linq where i send table and column name this query return me the max row number of the table .
SELECT ISNULL(MAX(intProductCode) + 1, 1) AS intProductCode FROM tblProductInfo
Above is my T-SQL syntax.I want same output from the linq how to
If i write this bellow syntax get same out put but here i can not set table and column name
this.Context.tblProductInfos.Max(p=>p.intProductCode)
How to set table and column name on linq which return max row number of this table.