LINQ in Action roller

linq isn't putting single quotes around string value

I am getting a query from linq that isn't surrounding the string value in this call with single quotes. Anyone know what would cause this? I've verified that boht the parameter and the property AffiliateSiteId are both strings so I'm not sure what else to check. Thanks. public ModuleViewConfiguration GetModuleConfigByModuleId( int ModuleId, string AffiliateSiteId) { var mod = ( from module in tdc.vwModuleLookupByGUIDs where module.ModuleId == ModuleId && module.AffiliateSiteId == AffiliateSiteId.ToString() Read More...
Published Monday, November 17, 2008 7:59 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication