Guest User

Untitled

a guest
Jun 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public class MyClass
  2. {
  3. public int Id { get; set; }
  4.  
  5. public DateTime Date { get; set; }
  6. public string String1 { get; set; }
  7. public string String2 { get; set; }
  8. public string String3 { get; set; }
  9. public string String4 { get; set; }
  10. }
  11.  
  12. CREATE TABLE [dbo].[MyClass](
  13. [Id] [int] IDENTITY(1,1) NOT NULL,
  14. [Xml] [varchar](max) NOT NULL,
  15. )
  16.  
  17. public class MyClass
  18. {
  19. public int Id { get; set; }
  20.  
  21. public AllOtherOptions Options { get; set; }
  22. }
  23.  
  24. public class AllOtherOptions
  25. {
  26. public DateTime Date { get; set; }
  27. public string String1 { get; set; }
  28. public string String2 { get; set; }
  29. public string String3 { get; set; }
  30. public string String4 { get; set; }
  31. }
  32.  
  33. public interface IXmlObjectContainer
  34. {
  35. void SerializeChildObjects();
  36. void DeSerializeChildObjects();
  37. }
Add Comment
Please, Sign In to add comment