Provides design-time support in a design host for the System.Web.UI.DataSourceControl class.
See Also: DataSourceDesigner Members
The System.Web.UI.Design.DataSourceDesigner class is the base class for data source designers, such as the System.Web.UI.Design.WebControls.SqlDataSourceDesigner, System.Web.UI.Design.WebControls.AccessDataSourceDesigner, and System.Web.UI.Design.WebControls.ObjectDataSourceDesigner classes. If you create a new data source control, you might also want to create a custom control designer for your control and derive it from the System.Web.UI.Design.DataSourceDesigner class.
The System.Web.UI.Design.DataSourceDesigner class has two event methods: the DataSourceDesigner.OnDataSourceChanged(EventArgs) and DataSourceDesigner.OnSchemaRefreshed(EventArgs) methods. Both of these events can be temporarily disabled with the DataSourceDesigner.SuppressDataSourceEvents method, which sets the DataSourceDesigner.SuppressingDataSourceEvents property. The event methods can be enabled again with the DataSourceDesigner.ResumeDataSourceEvents method.
There are two static methods that you can use to evaluate the equivalency of schemas or views without creating an instance of the class:
The DataSourceDesigner.SchemasEquivalent(IDataSourceSchema, IDataSourceSchema) method compares two schemas.
The DataSourceDesigner.ViewSchemasEquivalent(IDataSourceViewSchema, IDataSourceViewSchema) method compares the schemas of two views.