How to filter entity datasource base on year if I have the date


0 votes
asked Mar 15, 2016 by integrate (860 points)
I wonder if this technique has a specific name. I have entity which has following columns:IDNameValueDateI need to put where condition in entity data-source, something like: year(it.

5 Answers

0 votes
answered Jun 2, 2016 by Glowski (540 points)
selected Jun 4, 2016 by putzier_t
 
Best answer
Just found this solution. For more information refer CodePlex - Xml To Entity Framework - Home
0 votes
answered Jun 2, 2016 by Unqif (820 points)
The problem is, The date field is stored as a timestamp.
It appears from this small sample to be using the identity order of the Id field. Closing Date is smalldatetime in my SQL DB.
So far this is easy and adding new filters to the UI is not a problem.
commented Jun 3, 2016 by Cnp5161 (150 points)
I had the same problem but this solution works. Endpoint and binding both have the same name
0 votes
answered Jun 2, 2016 by I_Huddy (140 points)

This allows you to get at the more advanced entity API. MsgID, entity. End Time, entity. Start Time, entity. Location, entity.
For a detailed explanation see my post at https://msdn.microsoft.com/en-us/magazine/hh335061.aspx
0 votes
answered Jun 2, 2016 by that_1705 (150 points)
Hope this solution will fix your mood this time
It's just my humble opinion, but it seems silly to me that Filter data dispalyed in a DataGridView using ... the same page
commented Jun 2, 2016 by Explainhow (140 points)
Could it be the fact that MyDateSet is nullable while LastModified is not
commented Jun 3, 2016 by UnaZani (260 points)
Really just preference
0 votes
answered Jun 2, 2016 by Nf3796breil (150 points)
For more information on shared libraries visit Thread Customizing out of the box DIXF entity with a new ...
commented Jun 3, 2016 by petteythat (100 points)
Reviving this question because I find this to be a much better solution. They are useful when you need to use the same word to represent different things

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...