SchemaMember.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. //
  2. // System.Data.ObjectSpaces.Schema.SchemaMember.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. #if NET_2_0
  30. using System.Data.Mapping;
  31. using System.Reflection;
  32. namespace System.Data.ObjectSpaces.Schema {
  33. public class SchemaMember : IDomainField
  34. {
  35. #region Fields
  36. string alias;
  37. bool isHidden;
  38. bool isKey;
  39. bool isLazyLoad;
  40. KeyGenerator keyGenerator;
  41. string name;
  42. #endregion // Fields
  43. #region Constructors
  44. [MonoTODO]
  45. public SchemaMember ()
  46. {
  47. }
  48. [MonoTODO]
  49. public SchemaMember (string name)
  50. {
  51. Name = name;
  52. }
  53. [MonoTODO]
  54. public SchemaMember (string name, bool key)
  55. : this (name)
  56. {
  57. IsKey = key;
  58. }
  59. #endregion // Constructors
  60. #region Properties
  61. public string Alias {
  62. get { return alias; }
  63. set { alias = value; }
  64. }
  65. [MonoTODO]
  66. public SchemaClass DeclaringSchemaClass {
  67. get { throw new NotImplementedException (); }
  68. }
  69. [MonoTODO]
  70. public ExtendedPropertyCollection ExtendedProperties {
  71. get { throw new NotImplementedException (); }
  72. }
  73. [MonoTODO]
  74. IDomainStructure IDomainField.DomainStructure {
  75. get { throw new NotImplementedException (); }
  76. }
  77. public bool IsHidden {
  78. get { return isHidden; }
  79. set { isHidden = value; }
  80. }
  81. public bool IsKey {
  82. get { return isKey; }
  83. set { isKey = value; }
  84. }
  85. public bool IsLazyLoad {
  86. get { return isLazyLoad; }
  87. set { isLazyLoad = value; }
  88. }
  89. public KeyGenerator KeyGenerator {
  90. get { return keyGenerator; }
  91. set { keyGenerator = value; }
  92. }
  93. [MonoTODO]
  94. public MemberInfo MemberInfo {
  95. get { throw new NotImplementedException (); }
  96. }
  97. public string Name {
  98. get { return name; }
  99. set { name = value; }
  100. }
  101. [MonoTODO]
  102. public ObjectRelationship ObjectRelationship {
  103. get { throw new NotImplementedException (); }
  104. }
  105. #endregion // Properties
  106. }
  107. }
  108. #endif // NET_2_0