Skip to content

Commit

Permalink
2004-10-06 Umadevi S <sumadevi@novell.com>
Browse files Browse the repository at this point in the history
        * ISqlNoticationReceiver.cs - changed namespace
        * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs

svn path=/trunk/mcs/; revision=34744
  • Loading branch information
Umadevi S committed Oct 6, 2004
1 parent 55f818a commit 8de1969
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 2 deletions.
4 changes: 4 additions & 0 deletions mcs/class/System.Data/System.Data.SqlClient/ChangeLog
@@ -1,3 +1,7 @@
2004-10-06 Umadevi S <sumadevi@novell.com>
* ISqlNoticationReceiver.cs - changed namespace
* Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs

2004-09-24 Umadevi S <sumadevi@novell.com>
* SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.

Expand Down
@@ -1,5 +1,5 @@
//
// System.Data.Sql.ISqlNotificationReceiver
// System.Data.SqlClient.ISqlNotificationReceiver
//
// Author:
// Tim Coleman (tim@timcoleman.com)
Expand Down Expand Up @@ -32,7 +32,8 @@

#if NET_2_0

namespace System.Data.Sql {
namespace System.Data.SqlClient {

public interface ISqlNotificationReceiver
{
#region Methods
Expand All @@ -42,6 +43,8 @@ public interface ISqlNotificationReceiver

#endregion // Methods
}


}

#endif
61 changes: 61 additions & 0 deletions mcs/class/System.Data/System.Data.SqlClient/SqlNotificationInfo.cs
@@ -0,0 +1,61 @@
//
// System.Data.SqlClient.SqlNotificationInfo.cs
//
// Author:
// Umadevi S <sumadevi@novell.com>
//

//
// 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
{
/// <summary>
/// Provides additional infoatmion about the different notifications that can be
/// received by the dependency event handler
/// </summary>
[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

@@ -0,0 +1,56 @@
//
// System.Data.SqlClient.SqlNotificationSource.cs
//
// Author:
// Umadevi S <sumadevi@novell.com>
//

//
// 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
{
/// <summary>
/// Indicates the source of the notification received by the dependency event handler
/// </summary>
[Serializable]
public enum SqlNotificationSource {

Data = 0,
Database = 3,
Environment = 6,
Execution = 7,
Object = 2,
Statement = 5,
System = 4,
Timeout = 1

}

}

#endif


51 changes: 51 additions & 0 deletions mcs/class/System.Data/System.Data.SqlClient/SqlNotificationType.cs
@@ -0,0 +1,51 @@
//
// System.Data.SqlClient.SqlNotificationType.cs
//
// Author:
// Umadevi S <sumadevi@novell.com>
//

//
// 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
{
/// <summary>
/// Describes the differnt notification types that can be received by the dependency
/// event handler.
/// </summary>
[Serializable]
public enum SqlNotificationType {

Change = 0,
Subscribe = 1

}

}

#endif


0 comments on commit 8de1969

Please sign in to comment.