1

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 !!!

1 Answer 1

3

I think the dbfunctions actually reside in EntityFramework.dll, add a reference to EntityFramework and you should be right.

https://msdn.microsoft.com/en-us/library/system.data.entity.dbfunctions%28v=vs.113%29.aspx

States in here the assembly is entityframework too.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, I added the reference to EF that was missing!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.