S
shapper
Hello,
I have a class name Article and another one named ArticleModel:
public class ArticleModel : Article { }
And the following:
IQueryable<ArticleModel> models = ArticleRepository.GetArticles();
GetArticles returns an IQueryable<Article> and I need to be to convert
it to IQueryable<ArticleModel>.
If possible in a linq expression. I would like to know how to do this.
Thanks,
Miguel
I have a class name Article and another one named ArticleModel:
public class ArticleModel : Article { }
And the following:
IQueryable<ArticleModel> models = ArticleRepository.GetArticles();
GetArticles returns an IQueryable<Article> and I need to be to convert
it to IQueryable<ArticleModel>.
If possible in a linq expression. I would like to know how to do this.
Thanks,
Miguel