i know that Linq to entities does not support parametrized constructors, but how to do this pls ?:
date = new DateTime(int.Parse(SqlFunctions.StringConvert(l.rok).Trim()), int.Parse(SqlFunctions.StringConvert(l.mesic).Trim()), 1)
Whole example:
var objects = from object in GetObjects()
select new MyObject{
name = object.name;
date = new DateTime(object.rok,object.month,object.day)
}
How to do this?