mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-21 07:39:30 -10:00
* list:
Add Mono.Data.TdsClient.Internal.TdsBigDecimal
Add System.Data.SqlClient.SqlParameterConverter
Add System.Data.DataSysDescriptionAttribute
* System.Data/DataSysDescriptionAttribute.cs:
New class added
* System.Data.Common/DbDataPermission.cs:
Add CreateInstance method
* System.Data.SqlClient/SqlClientPermission.cs:
* System.Data.SqlClient/SqlError.cs:
Add Serializable attribute
* System.Data.SqlClient/SqlCommand.cs:
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlDataAdapter.cs:
* System.Data.SqlClient/SqlParameter.cs:
Add some missing property attributes
* System.Data.SqlClient/SqlCommandBuilder.cs:
Add some missing property attributes
Implement properties
* System.Data.SqlClient/SqlDataReader.cs:
Implement missing methods
* System.Data.SqlClient/SqlErrorCollection.cs:
Implement the properties
* System.Data.SqlClient/SqlException.cs:
Remove extra property accessors
* System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
Add internal constructor
* System.Data.SqlClient/SqlParameterCollection.cs:
Add internal constructor
Add property attributes
* System.Data.SqlClient/SqlParameterConverter.cs:
New internal class added
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
Remove destructor
* System.Data.SqlTypes/SqlDecimal.cs:
Add implicit conversion from TdsBigDecimal to SqlDecimal
* System.Data.SqlTypes/SqlString.cs:
* System.Data.SqlTypes/SqlInt16.cs:
* System.Data.SqlTypes/SqlDateTime.cs:
Change code to remove compiler warnings
svn path=/trunk/mcs/; revision=8813
96 lines
2.0 KiB
C#
96 lines
2.0 KiB
C#
//
|
|
// System.Data.Common.DbDataPermission.cs
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// (C) Ximian, Inc
|
|
// Copyright (C) Tim Coleman, 2002
|
|
//
|
|
|
|
using System.Security;
|
|
using System.Security.Permissions;
|
|
|
|
namespace System.Data.Common {
|
|
/// <summary>
|
|
/// Provides the capability for a .NET data provider to ensure that a user has a security level adequate for accessing data.
|
|
/// </summary>
|
|
public abstract class DBDataPermission : CodeAccessPermission, IUnrestrictedPermission
|
|
{
|
|
private bool allowBlankPassword;
|
|
private PermissionState permissionState;
|
|
|
|
protected DBDataPermission ()
|
|
{
|
|
allowBlankPassword = false;
|
|
permissionState = PermissionState.None;
|
|
}
|
|
|
|
protected DBDataPermission (PermissionState state)
|
|
{
|
|
allowBlankPassword = false;
|
|
permissionState = state;
|
|
}
|
|
|
|
public DBDataPermission (PermissionState state, bool abp)
|
|
{
|
|
allowBlankPassword = abp;
|
|
permissionState = state;
|
|
}
|
|
|
|
public bool AllowBlankPassword {
|
|
get { return allowBlankPassword; }
|
|
set { allowBlankPassword = value; }
|
|
}
|
|
|
|
public override IPermission Copy ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected virtual DBDataPermission CreateInstance ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override void FromXml (SecurityElement securityElement)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override IPermission Intersect (IPermission target)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override bool IsSubsetOf (IPermission target)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public bool IsUnrestricted ()
|
|
{
|
|
if (permissionState == PermissionState.Unrestricted)
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override SecurityElement ToXml ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override IPermission Union (IPermission target)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
}
|