use
SET FMTONLY OFF
in SQL store procedure and following in LINQ code
var MemDetailsOrdered = DataContext.GetOrderedElig(param1,param2,param..).ToList()
other wise it will return default int type
Thursday, January 20, 2011
Monday, January 17, 2011
Thursday, January 13, 2011
Friday, November 12, 2010
Thursday, November 4, 2010
NULL condition in CASE statement
The following would NOT work
case when e.myCode = null then e.yourCode else e.myCode end as displayCode
instead use below
,isnull(e.myCode,e.yourCode) as displayCode
hope this helps
case when e.myCode = null then e.yourCode else e.myCode end as displayCode
instead use below
,isnull(e.myCode,e.yourCode) as displayCode
hope this helps
Subscribe to:
Posts (Atom)