I have the following query in LINQ. "Symbol" doesn't exist, and the query is null, but I got an error, of casting and the program crashes.
decimal x = from cie in m_entities.Cie
where cie.symbol.Equals(Symbol)
select cie.cie_id;
Or can I have a null in x?