Click here to Skip to main content
15,901,505 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
I want to convert checksum(getdate()) to Linq. I was tried the below code. But this code return an exception "This function can only be invoked from LINQ to Entities".
using System.Data.Objects.SqlClient;
decimal? checkSum = SqlFunctions.Checksum(DateTime.Now);

Please help me to solve this issue.
Posted
Updated 3-Sep-13 0:03am
v2
Comments
Herman<T>.Instance 3-Sep-13 8:03am    
have you tried making an entity with a datetime ?
TryAndSucceed 3-Sep-13 18:29pm    
You need an entity to look for sum.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900