Files
mono/mcs/class/System.Data/System.Data.SqlClient/SqlClientPermissionAttribute.cs
T
Daniel Morgan aafe0b2af2 2002-05-18 Daniel Morgan <[email protected]>
* System.Data.build: took out all excluded
	files except the ones in the Test directory
	because all files compile now.  It does not
	mean they all work or have implementations
	though.

	* System.Data/DataRelationCollection.cs
	* System.Data/DataTableRelationCollection.cs
	* System.Data/InternalDataCollectionBase.cs
	* System.Data.Common/DbDataPermission.cs
	* System.Data.SqlClient/SqlInfoMessageEventArgs.cs
	* System.Data.SqlClient/SqlClientPermission.cs
	* System.Data.SqlClient/SqlClientPermissionAttribute.cs: changes
	to get all System.Data* files to compile.

	* System.Data.SqlClient/SqlCommand.cs: started coding
	to prevent SqlConnection and SqlCommand from doing
	anyting while fetching data using SqlDataReader.  Also,
	started coding to undo this prevention once the
	SqlDataReader is closed.

	* System.Data.SqlClient/SqlConnection.cs: get database server
	version.  Started coding to prevent connection from
	doing anything while fetching data and undo once the reader
	is closed.  Include events SqlInfoMessage and StateChange.

	* System.Data.SqlClient/SqlDataReader.cs: start coding to
	prevent connection and command from doing anything while
	fetching data, and undo when closed.

	* Test/PostgresTest.cs: added test to get ServerVersion
	property from SqlConnection

svn path=/trunk/mcs/; revision=4742
2002-05-18 13:20:24 +00:00

47 lines
969 B
C#

//
// System.Data.SqlClient.SqlClientPermissionAttribute.cs
//
// Author:
// Rodrigo Moya ([email protected])
// Daniel Morgan ([email protected])
//
// (C) Ximian, Inc 2002
//
using System;
using System.Data;
using System.Data.Common;
using System.Security;
using System.Security.Permissions;
namespace System.Data.SqlClient {
[AttributeUsage(AttributeTargets.Assembly |
AttributeTargets.Class |
AttributeTargets.Struct |
AttributeTargets.Constructor |
AttributeTargets.Method)]
[Serializable]
public sealed class SqlClientPermissionAttribute :
DBDataPermissionAttribute {
[MonoTODO]
public SqlClientPermissionAttribute(SecurityAction action) :
base(action)
{
// FIXME: do constructor
}
[MonoTODO]
public override IPermission CreatePermission() {
throw new NotImplementedException ();
}
//[MonoTODO]
//~SqlClientPermissionAttribute() {
// // FIXME: destructor to release resources
//}
}
}