Click here to Skip to main content
15,847,549 members
Home / Discussions / C#
   

C#

 
GeneralRe: Implementing Strategy Pattern Pin
Liagapi17-Jan-17 0:22
Liagapi17-Jan-17 0:22 
GeneralRe: Implementing Strategy Pattern Pin
harold aptroot17-Jan-17 0:05
harold aptroot17-Jan-17 0:05 
GeneralRe: Implementing Strategy Pattern Pin
Liagapi17-Jan-17 3:25
Liagapi17-Jan-17 3:25 
AnswerRe: Implementing Strategy Pattern Pin
F-ES Sitecore17-Jan-17 0:18
professionalF-ES Sitecore17-Jan-17 0:18 
GeneralRe: Implementing Strategy Pattern Pin
Liagapi17-Jan-17 0:28
Liagapi17-Jan-17 0:28 
GeneralRe: Implementing Strategy Pattern Pin
Bernhard Hiller18-Jan-17 0:21
Bernhard Hiller18-Jan-17 0:21 
AnswerRe: Implementing Strategy Pattern Pin
Gerry Schmitz17-Jan-17 6:48
mveGerry Schmitz17-Jan-17 6:48 
QuestionConvert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois16-Jan-17 14:18
professionalKevin Marois16-Jan-17 14:18 
I have a SQL table with a Started column that is of type DateTimeOffset.

In a Linq To Entities query I'm trying to query against a DateTime value:
.
.
.
    where t.Started.Value.DateTime >= startDT   //<=== Exception throw
.
.
.

I get "The specified type member 'DateTime' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported."

I've never used a DateTimeOffset. What's the right way to query this field using Linq To Entities?

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Pete O'Hanlon16-Jan-17 23:52
subeditorPete O'Hanlon16-Jan-17 23:52 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 6:08
professionalKevin Marois17-Jan-17 6:08 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 6:54
professionalKevin Marois17-Jan-17 6:54 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Pete O'Hanlon17-Jan-17 6:56
subeditorPete O'Hanlon17-Jan-17 6:56 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 6:57
professionalKevin Marois17-Jan-17 6:57 
AnswerRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Richard Deeming17-Jan-17 3:34
mveRichard Deeming17-Jan-17 3:34 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 6:19
professionalKevin Marois17-Jan-17 6:19 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Richard Deeming17-Jan-17 9:29
mveRichard Deeming17-Jan-17 9:29 
QuestionShow checkbox check in the datagridview line Pin
abboudi_ammar16-Jan-17 11:53
abboudi_ammar16-Jan-17 11:53 
AnswerRe: Show checkbox check in the datagridview line Pin
Richard MacCutchan16-Jan-17 22:37
mveRichard MacCutchan16-Jan-17 22:37 
QuestionHow can I extract positive word(s) from a paragraph in c# -Natural Language processing . Pin
Nowfal Sharafudeen16-Jan-17 2:09
Nowfal Sharafudeen16-Jan-17 2:09 
AnswerRe: How can I extract positive word(s) from a paragraph in c# -Natural Language processing . Pin
Pete O'Hanlon16-Jan-17 2:21
subeditorPete O'Hanlon16-Jan-17 2:21 
AnswerRe: How can I extract positive word(s) from a paragraph in c# -Natural Language processing . Pin
Eddy Vluggen16-Jan-17 3:48
professionalEddy Vluggen16-Jan-17 3:48 
Questionproject file associated with c# application on start Pin
Member 1104538814-Jan-17 23:40
Member 1104538814-Jan-17 23:40 
AnswerRe: project file associated with c# application on start Pin
Eddy Vluggen15-Jan-17 1:52
professionalEddy Vluggen15-Jan-17 1:52 
GeneralRe: project file associated with c# application on start Pin
Member 1104538815-Jan-17 2:01
Member 1104538815-Jan-17 2:01 
GeneralRe: project file associated with c# application on start Pin
Eddy Vluggen15-Jan-17 2:06
professionalEddy Vluggen15-Jan-17 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.