Ver código fonte

* DataTableTypeConverter.cs: added
* DataView.cs: added missing attribute on Table property
* DataViewManager.cs: moved attribute to correct property
* UniqueConstraint.cs: removed extra ReadOnly attribute from
IsPrimaryKey property

svn path=/trunk/mcs/; revision=28676

Umadevi S 21 anos atrás
pai
commit
ecb8b65b60

+ 7 - 0
mcs/class/System.Data/System.Data/ChangeLog

@@ -1,3 +1,10 @@
+2004-06-02  Gert Driesen <[email protected]>
+       * DataTableTypeConverter.cs: added
+       * DataView.cs: added missing attribute on Table property
+       * DataViewManager.cs: moved attribute to correct property
+       * UniqueConstraint.cs: removed extra ReadOnly attribute from
+        IsPrimaryKey property
+
 2004-06-01  Atsushi Enomoto  <[email protected]>
 
 	* DataRow.cs : ColumnsChanged event is not required in .ctor().

+ 26 - 0
mcs/class/System.Data/System.Data/DataTableTypeConverter.cs

@@ -0,0 +1,26 @@
+//
+// System.Data.DataTableTypeConverter.cs
+//
+// Author:
+//   Gert Driesen <[email protected]>
+//
+// Copyright (C) Novell, 2004
+//
+
+using System.ComponentModel;
+
+namespace System.Data
+{
+       internal class DataTableTypeConverter : ReferenceConverter
+       {
+               public DataTableTypeConverter () : base(typeof(DataTable))
+               {
+               }
+
+               public override bool GetPropertiesSupported (ITypeDescriptorContext context)
+               {
+                       return false;
+               }
+       }
+}
+

+ 1 - 0
mcs/class/System.Data/System.Data/DataView.cs

@@ -239,6 +239,7 @@ namespace System.Data
 		[DataSysDescription ("Indicates the table this DataView uses to get data.")]
 		[DefaultValue (null)]
 		[RefreshProperties (RefreshProperties.All)]
+		[TypeConverter (typeof(DataTableTypeConverter))]
 		public DataTable Table {
 			[MonoTODO]
 			get {

+ 2 - 2
mcs/class/System.Data/System.Data/DataViewManager.cs

@@ -53,14 +53,14 @@ namespace System.Data
 		}
 
 		[MonoTODO]
-		[DataSysDescription ("Indicates the sorting/filtering/state settings for any table in the corresponding DataSet.")]
-		[DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
 		public string DataViewSettingCollectionString {
 			get { throw new NotImplementedException (); }
 			set { throw new NotImplementedException (); }
 		}
 
 		[MonoTODO]
+		[DataSysDescription ("Indicates the sorting/filtering/state settings for any table in the corresponding DataSet.")]
+                [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
 		public DataViewSettingCollection DataViewSettings {
 			get { throw new NotImplementedException (); }
 		}

+ 0 - 1
mcs/class/System.Data/System.Data/UniqueConstraint.cs

@@ -300,7 +300,6 @@ namespace System.Data {
 
 		[DataCategory ("Data")]
 		[DataSysDescription ("Indicates if this constraint is a primary key.")]
-		[ReadOnly (true)]
 		public bool IsPrimaryKey {
 			get { return _isPrimaryKey; }
 		}