Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class MyEntity : Microsoft.WindowsAzure.Storage.Table.TableEntity
  2. {
  3. public TimeSpan MyDuration { get; set; }
  4.  
  5. // Workaround the fact that TableEntity does not automatically store a `TimeSpan`
  6. public long MyDurationTicks
  7. {
  8. get { return MyDuration.Ticks; }
  9. set { MyDuration = TimeSpan.FromTicks(value); }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement