| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- //------------------------------------------------------------------------------
- // <copyright file="DbParameter.cs" company="Microsoft">
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
- // <owner current="true" primary="true">Microsoft</owner>
- // <owner current="true" primary="false">Microsoft</owner>
- //------------------------------------------------------------------------------
- namespace System.Data.Common {
- using System;
- using System.ComponentModel;
- using System.Data;
- public abstract class DbParameter : MarshalByRefObject, IDbDataParameter { // V1.2.3300
- protected DbParameter() : base() {
- }
- [
- Browsable(false),
- DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden),
- RefreshProperties(RefreshProperties.All),
- ResCategoryAttribute(Res.DataCategory_Data),
- ResDescriptionAttribute(Res.DbParameter_DbType),
- ]
- abstract public DbType DbType {
- get;
- set;
- }
- [
- EditorBrowsableAttribute(EditorBrowsableState.Advanced)
- ]
- public abstract void ResetDbType();
- [
- DefaultValue(ParameterDirection.Input),
- RefreshProperties(RefreshProperties.All),
- ResCategoryAttribute(Res.DataCategory_Data),
- ResDescriptionAttribute(Res.DbParameter_Direction),
- ]
- abstract public ParameterDirection Direction {
- get;
- set;
- }
- [
- Browsable(false),
- DesignOnly(true),
- EditorBrowsableAttribute(EditorBrowsableState.Never)
- ]
- abstract public Boolean IsNullable {
- get;
- set;
- }
- [
- DefaultValue(""),
- ResCategoryAttribute(Res.DataCategory_Data),
- ResDescriptionAttribute(Res.DbParameter_ParameterName),
- ]
- abstract public String ParameterName {
- get;
- set;
- }
- byte IDbDataParameter.Precision { // SqlProjectTracking 17233
- get {
- return 0;
- }
- set {
- }
- }
- byte IDbDataParameter.Scale { // SqlProjectTracking 17233
- get {
- return 0;
- }
- set {
- }
- }
- virtual public byte Precision {
- get {
- return ((IDbDataParameter)this).Precision;
- }
- set {
- ((IDbDataParameter)this).Precision = value;
- }
- }
- virtual public byte Scale {
- get {
- return ((IDbDataParameter)this).Scale;
- }
- set {
- ((IDbDataParameter)this).Scale = value;
- }
- }
- [
- ResCategoryAttribute(Res.DataCategory_Data),
- ResDescriptionAttribute(Res.DbParameter_Size),
- ]
- abstract public int Size {
- get;
- set;
- }
- [
- DefaultValue(""),
- ResCategoryAttribute(Res.DataCategory_Update),
- ResDescriptionAttribute(Res.DbParameter_SourceColumn),
- ]
- abstract public String SourceColumn {
- get;
- set;
- }
- [
- DefaultValue(false),
- EditorBrowsableAttribute(EditorBrowsableState.Advanced),
- RefreshProperties(RefreshProperties.All),
- ResCategoryAttribute(Res.DataCategory_Update),
- ResDescriptionAttribute(Res.DbParameter_SourceColumnNullMapping),
- ]
- abstract public bool SourceColumnNullMapping {
- get;
- set;
- }
- [
- DefaultValue(DataRowVersion.Current),
- ResCategoryAttribute(Res.DataCategory_Update),
- ResDescriptionAttribute(Res.DbParameter_SourceVersion),
- ]
- virtual public DataRowVersion SourceVersion {
- get { return DataRowVersion.Default; }
- set { }
- }
- [
- DefaultValue(null),
- RefreshProperties(RefreshProperties.All),
- ResCategoryAttribute(Res.DataCategory_Data),
- ResDescriptionAttribute(Res.DbParameter_Value),
- ]
- abstract public object Value {
- get;
- set;
- }
- }
- }
|