Linq to entities parametrized constructor Datetime -


I know that Linux does not support Linux permitised constructors, but how is it pls?

  date = new date time (int.Parse (SqlFunctions.StringConvert (l.rok) .drim ()), int.Parse (SqlFunctions.StringConvert (l.mesic) .that () , 1)   

Full example:

  var objects = from object in GetObjects () New MyObject {name = object.name; Date = new date time (object.root, object.mm, object.day)}   

How to do this?

Use the CreateDateTime method of the entity functions available here:

These helpful methods Was created to translate into a SQL equivalent, as written in the comment of that link:

You can not call this function directly.

This function is translated for related work in the database.

Comments