Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. private void SetInsertMetadata(TDomainEntity entity)
  2. {
  3. entity.InsertDT = DateTime.UtcNow;
  4. }
  5.  
  6. public class GenericClass<TDomainEntity>
  7. {
  8. ...
  9. }
  10.  
  11. public interface IDateTimeHolder
  12. {
  13. DateTime InsertTD { get; set; }
  14. }
  15.  
  16. public class GenericClass<TDomainEntity> where TDomainEntity : IDateTimeHolder
  17. {
  18. string Version { get; set; }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement