diff --git a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog index f416f63cf7290..c12ecbb82ff49 100755 --- a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog +++ b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog @@ -1,3 +1,7 @@ +2004-10-06 Umadevi S + * ISqlNoticationReceiver.cs - changed namespace + * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs + 2004-09-24 Umadevi S * SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open. diff --git a/mcs/class/System.Data/System.Data.SqlClient/ISqlNotificationReceiver.cs b/mcs/class/System.Data/System.Data.SqlClient/ISqlNotificationReceiver.cs index 361e2e0420acb..a27dde8a22a09 100644 --- a/mcs/class/System.Data/System.Data.SqlClient/ISqlNotificationReceiver.cs +++ b/mcs/class/System.Data/System.Data.SqlClient/ISqlNotificationReceiver.cs @@ -1,5 +1,5 @@ // -// System.Data.Sql.ISqlNotificationReceiver +// System.Data.SqlClient.ISqlNotificationReceiver // // Author: // Tim Coleman (tim@timcoleman.com) @@ -32,7 +32,8 @@ #if NET_2_0 -namespace System.Data.Sql { +namespace System.Data.SqlClient { + public interface ISqlNotificationReceiver { #region Methods @@ -42,6 +43,8 @@ public interface ISqlNotificationReceiver #endregion // Methods } + + } #endif diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationInfo.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationInfo.cs new file mode 100644 index 0000000000000..83de281c95da2 --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationInfo.cs @@ -0,0 +1,61 @@ +// +// System.Data.SqlClient.SqlNotificationInfo.cs +// +// Author: +// Umadevi S +// + +// +// Copyright (C) 2004 Novell, Inc (http://www.novell.com) +// +// 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 + +namespace System.Data.SqlClient +{ + /// + /// Provides additional infoatmion about the different notifications that can be + /// received by the dependency event handler + /// + [Serializable] + public enum SqlNotificationInfo { + + Alter = 5, + Delete = 3, + Drop = 4, + Error = 7, + Insert = 1, + Invalid = 9, + Isolation = 11, + Options = 10, + Query = 8, + Restart = 6, + Truncate = 0, + Update = 2 + + } + +} + + +#endif + diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationSource.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationSource.cs new file mode 100644 index 0000000000000..276413dda5677 --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationSource.cs @@ -0,0 +1,56 @@ +// +// System.Data.SqlClient.SqlNotificationSource.cs +// +// Author: +// Umadevi S +// + +// +// Copyright (C) 2004 Novell, Inc (http://www.novell.com) +// +// 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 + +namespace System.Data.SqlClient +{ + /// + /// Indicates the source of the notification received by the dependency event handler + /// + [Serializable] + public enum SqlNotificationSource { + + Data = 0, + Database = 3, + Environment = 6, + Execution = 7, + Object = 2, + Statement = 5, + System = 4, + Timeout = 1 + + } + +} + +#endif + + diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationType.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationType.cs new file mode 100644 index 0000000000000..2a407dc0847c2 --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlClient/SqlNotificationType.cs @@ -0,0 +1,51 @@ +// +// System.Data.SqlClient.SqlNotificationType.cs +// +// Author: +// Umadevi S +// + +// +// Copyright (C) 2004 Novell, Inc (http://www.novell.com) +// +// 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 + +namespace System.Data.SqlClient +{ + /// + /// Describes the differnt notification types that can be received by the dependency + /// event handler. + /// + [Serializable] + public enum SqlNotificationType { + + Change = 0, + Subscribe = 1 + + } + +} + +#endif + +