
Question:
I installed EF 6 in a DAL class library but I can get it work DbFunctions.TruncateTime, when I add the reference to System.Data.Entity and build the solution still appearing the message: The type or namespace name 'DbFunctions' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?) .
Help... I need to compare dates !!!
Answer1:I think the dbfunctions actually reside in EntityFramework.dll, add a reference to EntityFramework and you should be right.
<a href="https://msdn.microsoft.com/en-us/library/system.data.entity.dbfunctions%28v=vs.113%29.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/system.data.entity.dbfunctions%28v=vs.113%29.aspx</a>
States in here the assembly is entityframework too.