Hi guys, I need to extend a subsonic generated (using linq templates) I have created the class with the same name and namespace in the same project when I run a query like this
IMBDB db=new IMBDB();
var r = (from query in db.Articles
join cat in db.ArticleCategories on query.CategoryID equals cat.ID
where query.ID == articleId select new Article()
{
CategoryName = cat.Description,
ID = query.ID
});
return r.SingleOrDefault();
//The CategoryName is created in the extended partial class is always null
//while the generated sql is as expected
SELECT [t0].[ID], [t1].[Description] FROM [dbo].[Articles] AS t0
INNER JOIN [dbo].[ArticleCategories] AS t1
ON ([t0].[CategoryID] = [t1].[ID])
WHERE ([t0].[ID] = 40)
Any ideas how to correct this?
Thanks