SchemaInfo.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //
  2. // System.Data.Common.SchemaInfo.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System;
  10. namespace System.Data.Common {
  11. internal class SchemaInfo
  12. {
  13. #region Fields
  14. string columnName;
  15. string tableName;
  16. string dataTypeName;
  17. object value;
  18. bool allowDBNull;
  19. bool isReadOnly;
  20. int ordinal;
  21. int size;
  22. byte precision;
  23. byte scale;
  24. Type fieldType;
  25. #endregion // Fields
  26. #region Constructors
  27. public SchemaInfo ()
  28. {
  29. }
  30. #endregion // Constructors
  31. #region Properties
  32. public bool AllowDBNull {
  33. get { return allowDBNull; }
  34. set { allowDBNull = value; }
  35. }
  36. public string ColumnName {
  37. get { return columnName; }
  38. set { columnName = value; }
  39. }
  40. public int ColumnOrdinal {
  41. get { return ordinal; }
  42. set { ordinal = value; }
  43. }
  44. public int ColumnSize {
  45. get { return size; }
  46. set { size = value; }
  47. }
  48. public String DataTypeName {
  49. get { return dataTypeName; }
  50. set { dataTypeName = value; }
  51. }
  52. public Type FieldType {
  53. get { return fieldType; }
  54. set { fieldType = value; }
  55. }
  56. public byte NumericPrecision {
  57. get { return precision; }
  58. set { precision = value; }
  59. }
  60. public byte NumericScale {
  61. get { return scale; }
  62. set { scale = value; }
  63. }
  64. public string TableName {
  65. get { return tableName; }
  66. set { tableName = value; }
  67. }
  68. public bool IsReadOnly {
  69. get { return isReadOnly; }
  70. set { isReadOnly = value; }
  71. }
  72. #endregion // Properties
  73. }
  74. }