FieldValue.cs 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.Specialized;
  4. using System.Collections;
  5. using System.Text;
  6. namespace Ant.ORM
  7. {
  8. public class FieldValue
  9. {
  10. //构造函数
  11. public FieldValue() { }
  12. /// <summary>
  13. /// 字段名和值
  14. /// </summary>
  15. /// <param name="name"></param>
  16. /// <param name="value"></param>
  17. public FieldValue(string name, object value)
  18. {
  19. this.name = name;
  20. this.value = value;
  21. }
  22. private string name;
  23. /// <summary>
  24. /// 字段名
  25. /// </summary>
  26. public string Name
  27. {
  28. get { return name; }
  29. set { name = value; }
  30. }
  31. private object value;
  32. /// <summary>
  33. /// 字段值
  34. /// </summary>
  35. public object Value
  36. {
  37. get { return this.value; }
  38. set { this.value = value; }
  39. }
  40. }
  41. }