Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
2007-10-02 Atsushi Enomoto <atsushi@ximian.com>
* DesignerDataParameter.cs, DesignerDataRelationship.cs,
DesignerDataSchemaClass.cs, DesignerDataStoredProcedure.cs,
DesignerDataTable.cs, DesignerDataTableBase.cs, DesignerDataView.cs,
IDataEnvironment.cs, IDesignerDataSchema.cs, QueryBuilderMode.cs:
new stubs and implementations.
2007-10-01 Atsushi Enomoto <atsushi@ximian.com>
* DataSourceGroupCollection.cs, DataSourceProviderService.cs,
DataSourceGroup.cs, DesignerDataColumn.cs : new stubs.
2007-09-28 Atsushi Enomoto <atsushi@ximian.com>
* DataSourceDescriptor.cs,
DataSourceDescriptorCollection.cs,
DesignerDataConnection.cs : new stubs.

View File

@@ -0,0 +1,53 @@
//
// System.ComponentModel.Design.Data.DataSourceDescriptor
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Drawing;
using System.Drawing.Design;
using System.Drawing.Drawing2D;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public abstract class DataSourceDescriptor
{
protected DataSourceDescriptor ()
{
}
public abstract Bitmap Image { get; }
public abstract bool IsDesignable { get; }
public abstract string Name { get; }
public abstract string TypeName { get; }
}
}
#endif

View File

@@ -0,0 +1,88 @@
//
// System.ComponentModel.Design.Data.DataSourceDescriptor
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Collections;
namespace System.ComponentModel.Design.Data
{
public class DataSourceDescriptorCollection : CollectionBase
{
public DataSourceDescriptorCollection ()
{
}
[MonoTODO]
public DataSourceDescriptor this [int index] {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
[MonoTODO]
public int Add (DataSourceDescriptor value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public bool Contains (DataSourceDescriptor value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void CopyTo (DataSourceDescriptor [] array, int index)
{
throw new NotImplementedException ();
}
[MonoTODO]
public int IndexOf (DataSourceDescriptor value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Insert (int index, DataSourceDescriptor value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Remove (DataSourceDescriptor value)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,53 @@
//
// System.ComponentModel.Design.Data.DataSourceGroup
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Drawing;
namespace System.ComponentModel.Design.Data
{
public abstract class DataSourceGroup
{
protected DataSourceGroup ()
{
}
public abstract DataSourceDescriptorCollection DataSources { get; }
public abstract Bitmap Image { get; }
public abstract bool IsDefault { get; }
public abstract string Name { get; }
}
}
#endif

View File

@@ -0,0 +1,87 @@
//
// System.ComponentModel.Design.Data.DataSourceGroupCollection
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
namespace System.ComponentModel.Design.Data
{
public class DataSourceGroupCollection : CollectionBase
{
public DataSourceGroupCollection ()
{
}
[MonoTODO]
public DataSourceGroup this [int index] {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
[MonoTODO]
public int Add (DataSourceGroup value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public bool Contains (DataSourceGroup value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void CopyTo (DataSourceGroup [] array, int index)
{
throw new NotImplementedException ();
}
[MonoTODO]
public int IndexOf (DataSourceGroup value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Insert (int index, DataSourceGroup value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Remove (DataSourceGroup value)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,62 @@
//
// System.ComponentModel.Design.Data.DataSourceProviderService
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.ComponentModel;
using System.Windows.Forms;
namespace System.ComponentModel.Design.Data
{
[System.Runtime.InteropServices.Guid ("ABE5C1F0-C96E-40c4-A22D-4A5CEC899BDC")]
public abstract class DataSourceProviderService
{
protected DataSourceProviderService ()
{
}
public abstract bool SupportsAddNewDataSource { get; }
public abstract bool SupportsConfigureDataSource { get; }
public abstract object AddDataSourceInstance (IDesignerHost host, DataSourceDescriptor dataSourceDescriptor);
public abstract DataSourceGroupCollection GetDataSources ();
public abstract DataSourceGroup InvokeAddNewDataSource (IWin32Window parentWindow, FormStartPosition startPosition);
public abstract bool InvokeConfigureDataSource (IWin32Window parentWindow, FormStartPosition startPosition, DataSourceDescriptor dataSourceDescriptor);
public abstract void NotifyDataSourceComponentAdded (object dsc);
}
}
#endif

View File

@@ -0,0 +1,106 @@
//
// System.ComponentModel.Design.Data.DesignerDataColumn
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Data;
namespace System.ComponentModel.Design.Data
{
public sealed class DesignerDataColumn
{
[MonoTODO]
public DesignerDataColumn (string name, DbType dataType)
{
throw new NotImplementedException ();
}
[MonoTODO]
public DesignerDataColumn (string name, DbType dataType, object defaultValue)
{
throw new NotImplementedException ();
}
[MonoTODO]
public DesignerDataColumn (string name, DbType dataType, object defaultValue, bool identity, bool nullable, bool primaryKey, int precision, int scale, int length)
{
this.name = name;
this.data_type =dataType;
this.default_value = defaultValue;
this.identity = identity;
this.nullable = nullable;
this.primary_key = primaryKey;
this.precision = precision;
this.scale = scale;
this.length = length;
}
string name;
DbType data_type;
object default_value;
bool identity;
bool nullable;
bool primary_key;
int precision;
int scale;
int length;
public string Name {
get { return name; }
}
public DbType DataType {
get { return data_type; }
}
public object DefaultValue {
get { return default_value; }
}
public bool Identity {
get { return identity; }
}
public bool Nullable {
get { return nullable; }
}
public bool PrimaryKey {
get { return primary_key; }
}
public int Precision {
get { return precision; }
}
public int Scale {
get { return scale; }
}
public int Length {
get { return length; }
}
}
}
#endif

View File

@@ -0,0 +1,80 @@
//
// System.ComponentModel.Design.Data.DesignerDataConnection
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Drawing;
using System.Drawing.Design;
using System.Drawing.Drawing2D;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public sealed class DesignerDataConnection
{
string name, provider_name, connection_string;
bool is_configured;
[MonoTODO]
public DesignerDataConnection (string name, string providerName, string connectionString)
: this (name, providerName, connectionString, false)
{
throw new NotImplementedException ();
}
[MonoTODO]
public DesignerDataConnection (string name, string providerName, string connectionString, bool isConfigured)
{
throw new NotImplementedException ();
}
[MonoTODO]
public string Name {
get { return name; }
}
[MonoTODO]
public string ProviderName{
get { return provider_name; }
}
[MonoTODO]
public string ConnectionString {
get { return connection_string; }
}
[MonoTODO]
public bool IsConfigured {
get { return is_configured; }
}
}
}
#endif

View File

@@ -0,0 +1,65 @@
//
// System.ComponentModel.Design.Data.DesignerDataParameter
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Drawing;
using System.Data;
namespace System.ComponentModel.Design.Data
{
public sealed class DesignerDataParameter
{
string name;
DbType type;
ParameterDirection direction;
public DesignerDataParameter (string name, DbType dataType, ParameterDirection direction)
{
this.name = name;
this.type = dataType;
this.direction = direction;
}
public DbType DataType {
get { return type; }
}
public string Name {
get { return name; }
}
public ParameterDirection Direction {
get { return direction; }
}
}
}
#endif

View File

@@ -0,0 +1,70 @@
//
// System.ComponentModel.Design.Data.DesignerDataRelationship
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public sealed class DesignerDataRelationship
{
string name;
ICollection parent_columns, child_columns;
DesignerDataTable child_table;
public DesignerDataRelationship (string name, ICollection parentColumns, DesignerDataTable childTable, ICollection childColumns)
{
this.name = name;
this.parent_columns = parentColumns;
this.child_table = childTable;
this.child_columns = childColumns;
}
public string Name {
get { return name; }
}
public ICollection ParentColumns {
get { return parent_columns; }
}
public DesignerDataTable ChildTable {
get { return child_table; }
}
public ICollection ChildColumns {
get { return child_columns; }
}
}
}
#endif

View File

@@ -0,0 +1,50 @@
//
// System.ComponentModel.Design.Data.DesignerDataSchemaClass
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public sealed class DesignerDataSchemaClass
{
public static readonly DesignerDataSchemaClass StoredProcedures = new DesignerDataSchemaClass ();
public static readonly DesignerDataSchemaClass Tables = new DesignerDataSchemaClass ();
public static readonly DesignerDataSchemaClass Views = new DesignerDataSchemaClass ();
private DesignerDataSchemaClass ()
{
}
}
}
#endif

View File

@@ -0,0 +1,72 @@
//
// System.ComponentModel.Design.Data.DesignerDataStoredProcedure
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public abstract class DesignerDataStoredProcedure
{
string name, owner;
[MonoTODO]
protected DesignerDataStoredProcedure (string name)
: this (name, null)
{
}
[MonoTODO]
protected DesignerDataStoredProcedure (string name, string owner)
{
this.name = name;
this.owner = owner;
}
public string Name {
get { return name; }
}
public string Owner {
get { return owner; }
}
[MonoTODO]
public ICollection Parameters {
get { throw new NotImplementedException (); }
}
protected abstract ICollection CreateParameters ();
}
}
#endif

View File

@@ -0,0 +1,59 @@
//
// System.ComponentModel.Design.Data.DesignerDataTable
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public abstract class DesignerDataTable : DesignerDataTableBase
{
protected DesignerDataTable (string name)
: base (name)
{
}
protected DesignerDataTable (string name, string owner)
: base (name, owner)
{
}
protected abstract ICollection CreateRelationships ();
[MonoTODO]
public ICollection Relationships {
get { throw new NotImplementedException (); }
}
}
}
#endif

View File

@@ -0,0 +1,70 @@
//
// System.ComponentModel.Design.Data.DesignerDataTableBase
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public abstract class DesignerDataTableBase
{
string name, owner;
protected DesignerDataTableBase (string name)
: this (name, null)
{
}
protected DesignerDataTableBase (string name, string owner)
{
this.name = name;
this.owner = owner;
}
public string Name {
get { return name; }
}
public string Owner {
get { return owner; }
}
[MonoTODO]
public ICollection Columns {
get { throw new NotImplementedException (); }
}
protected abstract ICollection CreateColumns ();
}
}
#endif

View File

@@ -0,0 +1,52 @@
//
// System.ComponentModel.Design.Data.DesignerDataView
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public abstract class DesignerDataView : DesignerDataTableBase
{
protected DesignerDataView (string name)
: base (name)
{
}
protected DesignerDataView (string name, string owner)
: base (name, owner)
{
}
}
}
#endif

View File

@@ -0,0 +1,61 @@
//
// System.ComponentModel.Design.Data.IDataEnvironment
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Windows.Forms;
using System.CodeDom;
using System.Collections;
using System.Data;
using System.Data.Common;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public interface IDataEnvironment
{
ICollection Connections { get; }
DesignerDataConnection BuildConnection (IWin32Window owner, DesignerDataConnection initialConnection);
string BuildQuery (IWin32Window owner, DesignerDataConnection connection, QueryBuilderMode mode, string initialQueryText);
DesignerDataConnection ConfigureConnection (IWin32Window owner, DesignerDataConnection connection, string name);
CodeExpression GetCodeExpression (DesignerDataConnection connection);
IDesignerDataSchema GetConnectionSchema (DesignerDataConnection connection);
DbConnection GetDesignTimeConnection (DesignerDataConnection connection);
}
}
#endif

View File

@@ -0,0 +1,46 @@
//
// System.ComponentModel.Design.Data.IDesignerDataSchema
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public interface IDesignerDataSchema
{
ICollection GetSchemaItems (DesignerDataSchemaClass schemaClass);
bool SupportsSchemaClass (DesignerDataSchemaClass schemaClass);
}
}
#endif

View File

@@ -0,0 +1,47 @@
//
// System.ComponentModel.Design.Data.IDesignerDataSchema
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// Copyright (C) 2007 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Security.Permissions;
namespace System.ComponentModel.Design.Data
{
public enum QueryBuilderMode
{
Select,
Update,
Insert,
Delete
}
}
#endif