Click here to Skip to main content
11,720,374 members (78,207 online)

.NET Framework

 
GeneralRe: winRT xaml/C# listview selected index Pin
Clodetta del Mar15-Feb-13 3:36
memberClodetta del Mar15-Feb-13 3:36 
GeneralRe: winRT xaml/C# listview selected index Pin
Marco Bertschi15-Feb-13 4:35
memberMarco Bertschi15-Feb-13 4:35 
GeneralRe: winRT xaml/C# listview selected index Pin
Clodetta del Mar18-Feb-13 22:28
memberClodetta del Mar18-Feb-13 22:28 
GeneralRe: winRT xaml/C# listview selected index Pin
Marco Bertschi18-Feb-13 23:18
memberMarco Bertschi18-Feb-13 23:18 
GeneralRe: winRT xaml/C# listview selected index Pin
Clodetta del Mar19-Feb-13 0:40
memberClodetta del Mar19-Feb-13 0:40 
GeneralRe: winRT xaml/C# listview selected index Pin
Marco Bertschi19-Feb-13 1:03
memberMarco Bertschi19-Feb-13 1:03 
AnswerRe: winRT xaml/C# listview selected index [solved] Pin
Clodetta del Mar18-Feb-13 23:09
memberClodetta del Mar18-Feb-13 23:09 
QuestionReplacing Compiled Code for Scheduled Tasks Pin
indian14313-Feb-13 10:57
memberindian14313-Feb-13 10:57 
AnswerRe: Replacing Compiled Code for Scheduled Tasks Pin
Jibesh13-Feb-13 11:07
memberJibesh13-Feb-13 11:07 
AnswerRe: Replacing Compiled Code for Scheduled Tasks Pin
Dave Kreskowiak13-Feb-13 16:50
mvpDave Kreskowiak13-Feb-13 16:50 
QuestionEntity Framework mapping issue Pin
alex.barylski13-Feb-13 6:32
memberalex.barylski13-Feb-13 6:32 
AnswerRe: Entity Framework mapping issue Pin
Richard Deeming13-Feb-13 8:23
memberRichard Deeming13-Feb-13 8:23 
GeneralRe: Entity Framework mapping issue Pin
alex.barylski13-Feb-13 8:45
memberalex.barylski13-Feb-13 8:45 
GeneralRe: Entity Framework mapping issue Pin
Richard Deeming13-Feb-13 9:05
memberRichard Deeming13-Feb-13 9:05 
Ah, OK - "timestamp" in SQL is something totally different.

I don't think there's any built-in way to perform this sort of conversion in the mapping layer. The simplest approach is probably to add a calculated property for the date, decorated with the NotMapped attribute:
Public Class WorkOrderEntity
   Private Shared ReadOnly Epoch As New DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero)
 
   <Column("DateReceived")> _
   Public Property DateReceivedTimestamp() As Integer
 
   <NotMapped> _
   Public Property DateReceived() As DateTimeOffset
      Get
         Return Epoch.AddSeconds(DateReceivedTimestamp)
      End Get
      Set
         DateReceivedTimestamp = CInt(Math.Floor((value - Epoch).TotalSeconds))
      End Set
   End Property
End Class
I'd be inclined to use DateTimeOffset for the property rather than a string; formatting the date should be a UI concern.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Entity Framework mapping issue Pin
Dave Kreskowiak13-Feb-13 16:55
mvpDave Kreskowiak13-Feb-13 16:55 
QuestionProblem with my Kinect Runtime in running mode :( Pin
Yanni de Wouters9-Feb-13 11:59
memberYanni de Wouters9-Feb-13 11:59 
AnswerRe: Problem with my Kinect Runtime in running mode :( Pin
Richard MacCutchan9-Feb-13 21:33
mvpRichard MacCutchan9-Feb-13 21:33 
GeneralRe: Problem with my Kinect Runtime in running mode :( Pin
Yanni de Wouters10-Feb-13 10:19
memberYanni de Wouters10-Feb-13 10:19 
GeneralRe: Problem with my Kinect Runtime in running mode :( Pin
Richard MacCutchan10-Feb-13 21:39
mvpRichard MacCutchan10-Feb-13 21:39 
GeneralRe: Problem with my Kinect Runtime in running mode :( Pin
Yanni de Wouters7-Apr-13 5:32
memberYanni de Wouters7-Apr-13 5:32 
QuestionMemory managment Pin
imgags8-Feb-13 2:27
memberimgags8-Feb-13 2:27 
AnswerRe: Memory managment Pin
Dave Kreskowiak8-Feb-13 2:47
mvpDave Kreskowiak8-Feb-13 2:47 
AnswerRe: Memory managment Pin
Eddy Vluggen9-Feb-13 0:21
mvpEddy Vluggen9-Feb-13 0:21 
AnswerRe: Memory managment Pin
StyleTech Solutions Ltd9-Feb-13 3:02
groupStyleTech Solutions Ltd9-Feb-13 3:02 
QuestionWhy dont call event Pin
Junoli7-Feb-13 0:55
memberJunoli7-Feb-13 0:55 
AnswerRe: Why dont call event Pin
Eddy Vluggen7-Feb-13 9:00
mvpEddy Vluggen7-Feb-13 9:00 
QuestionChange Collpased Text Color Settings in VB.Net Pin
AmbiguousName6-Feb-13 23:46
memberAmbiguousName6-Feb-13 23:46 
AnswerRe: Change Collpased Text Color Settings in VB.Net Pin
Richard MacCutchan7-Feb-13 0:52
mvpRichard MacCutchan7-Feb-13 0:52 
GeneralRe: Change Collpased Text Color Settings in VB.Net Pin
AmbiguousName7-Feb-13 1:12
memberAmbiguousName7-Feb-13 1:12 
GeneralRe: Change Collpased Text Color Settings in VB.Net Pin
Richard MacCutchan7-Feb-13 1:35
mvpRichard MacCutchan7-Feb-13 1:35 
GeneralRe: Change Collpased Text Color Settings in VB.Net Pin
Dave Kreskowiak7-Feb-13 2:12
mvpDave Kreskowiak7-Feb-13 2:12 
QuestionHow to convert div.innerhtml to PDF(VB.NET) Pin
Sugumaran s5-Feb-13 22:45
memberSugumaran s5-Feb-13 22:45 
AnswerRe: How to convert div.innerhtml to PDF(VB.NET) Pin
Dave Kreskowiak6-Feb-13 1:49
mvpDave Kreskowiak6-Feb-13 1:49 
QuestionLooking for a asp.net with c# mentor Pin
minertom13-Feb-13 6:50
memberminertom13-Feb-13 6:50 
AnswerRe: Looking for a asp.net with c# mentor Pin
Richard MacCutchan3-Feb-13 22:26
mvpRichard MacCutchan3-Feb-13 22:26 
GeneralRe: Looking for a asp.net with c# mentor Pin
Sheikh Muhammad Haris9-Feb-13 15:53
memberSheikh Muhammad Haris9-Feb-13 15:53 
Question.NET CF 3.9 Pin
DisIsHoody1-Feb-13 10:40
memberDisIsHoody1-Feb-13 10:40 
QuestionVB.NET Array.Copy Question Pin
Eric Whitmore29-Jan-13 5:02
memberEric Whitmore29-Jan-13 5:02 
AnswerRe: VB.NET Array.Copy Question Pin
Alan N29-Jan-13 6:33
memberAlan N29-Jan-13 6:33 
AnswerRe: VB.NET Array.Copy Question Pin
wajeetalohana30-Jan-13 0:30
memberwajeetalohana30-Jan-13 0:30 
GeneralRe: VB.NET Array.Copy Question Pin
Dave Kreskowiak30-Jan-13 0:53
mvpDave Kreskowiak30-Jan-13 0:53 
AnswerRe: VB.NET Array.Copy Question Pin
Pete O'Hanlon30-Jan-13 1:21
protectorPete O'Hanlon30-Jan-13 1:21 
AnswerRe: VB.NET Array.Copy Question Pin
Eric Whitmore30-Jan-13 2:16
memberEric Whitmore30-Jan-13 2:16 
GeneralRe: VB.NET Array.Copy Question Pin
Pete O'Hanlon30-Jan-13 2:27
protectorPete O'Hanlon30-Jan-13 2:27 
QuestionHow to show XPS navigation tree Pin
Martiniak28-Jan-13 19:25
memberMartiniak28-Jan-13 19:25 
AnswerRe: How to show XPS navigation tree Pin
Richard MacCutchan29-Jan-13 3:30
mvpRichard MacCutchan29-Jan-13 3:30 
AnswerRe: How to show XPS navigation tree Pin
Pete O'Hanlon29-Jan-13 4:57
protectorPete O'Hanlon29-Jan-13 4:57 
QuestionIn-Depth Book for CLI Pin
DisIsHoody28-Jan-13 14:56
memberDisIsHoody28-Jan-13 14:56 
AnswerRe: In-Depth Book for CLI Pin
Richard MacCutchan28-Jan-13 22:37
mvpRichard MacCutchan28-Jan-13 22:37 
AnswerRe: In-Depth Book for CLI Pin
Pete O'Hanlon28-Jan-13 23:19
protectorPete O'Hanlon28-Jan-13 23:19 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | Last Updated 3 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid