Attached please find a patch for mcs/class/System.Data/System.Data/ and a new file for mcs/class/System/System.ComponentModel/
Suggested ChangeLog for mcs/class/System.Data/System.Data/: Added framework for DataSet.Update Implemented missing methods GetSchemaSerializable, GetSerializationData, ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables for DataSet Implemented missing methods CreateInstance and GetRowType for DataTable Suggested ChangeLog for mcs/class/System/System.ComponentModel/: Implemented DesignerCategoryAttribute Regards, Alan ----- Original Message ----- From: "Miguel de Icaza" <[EMAIL PROTECTED]> To: "Alan Tam" <[EMAIL PROTECTED]> Cc: "Mono-List" <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 2:36 AM Subject: Re: [Mono-list] Compilation Errors on DataSet Classes Generated byXSD.exe > Hello, > > > I've tried to generate a class from XSD.exe by Microsoft and compile it in > > Mono. There are many compilation errors and I have to at least patch it like > > this in order to make it work. > > Please post your patches in diff -u form, and also explain what the > patch does in a ChangeLog entry. > > Removing functionality is usually not a good idea. It might be best to > just implement the missing classes. > > Miguel > _______________________________________________ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list >
System.Data.patch
Description: Binary data
//
// System.ComponentModel.DesignerCategoryAttribute.cs
//
// Author:
// Alan Tam Siu Lung ([EMAIL PROTECTED])
//
namespace System.ComponentModel {
/// <summary>
/// Designer Attribute for classes.
/// </summary>
/// <remarks>
/// </remarks>
[AttributeUsage(AttributeTargets.Class)]
public sealed class DesignerCategoryAttribute : Attribute
{
string category;
public static readonly DesignerCategoryAttribute Component;
public static readonly DesignerCategoryAttribute Form;
public static readonly DesignerCategoryAttribute Generic;
static readonly DesignerCategoryAttribute Default;
public DesignerCategoryAttribute ()
{
this.category = "";
}
public DesignerCategoryAttribute (string category)
{
this.category = category;
}
public override object TypeId {
get {
return GetType ();
}
}
public string Category {
get {
return category;
}
}
public override bool Equals (object obj)
{
if (!(obj is DesignerCategoryAttribute))
return false;
if (obj == this)
return true;
return ((DesignerCategoryAttribute) obj).category ==
category;
}
public override int GetHashCode ()
{
return category.GetHashCode ();
}
public override bool IsDefaultAttribute ()
{
return category ==
DesignerCategoryAttribute.Default.Category; // FIXME
}
}
}
