EasyDbParameter.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using System.Collections;
  3. using System.Data;
  4. using System.Data.Common;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace EasyDevCore.Database
  8. {
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. /// <seealso cref="System.Data.Common.DbParameter" />
  13. public class EasyDbParameter : DbParameter
  14. {
  15. /// <summary>
  16. /// Initializes a new instance of the <see cref="EasyDbParameter"/> class.
  17. /// </summary>
  18. public EasyDbParameter()
  19. {
  20. }
  21. /// <summary>
  22. /// Gets or sets the <see cref="T:System.Data.DbType" /> of the parameter.
  23. /// </summary>
  24. public override DbType DbType { get; set; }
  25. /// <summary>
  26. /// Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
  27. /// </summary>
  28. public override ParameterDirection Direction { get; set; }
  29. /// <summary>
  30. /// Gets or sets a value that indicates whether the parameter accepts null values.
  31. /// </summary>
  32. public override bool IsNullable { get; set; }
  33. /// <summary>
  34. /// Gets or sets the name of the <see cref="T:System.Data.Common.DbParameter" />.
  35. /// </summary>
  36. public override string ParameterName { get; set; }
  37. /// <summary>
  38. /// Gets or sets the maximum size, in bytes, of the data within the column.
  39. /// </summary>
  40. public override int Size { get; set; }
  41. /// <summary>
  42. /// Gets or sets the name of the source column mapped to the <see cref="T:System.Data.DataSet" /> and used for loading or returning the <see cref="P:System.Data.Common.DbParameter.Value" />.
  43. /// </summary>
  44. public override string SourceColumn { get; set; }
  45. /// <summary>
  46. /// Gets or sets a value which indicates whether the source column is nullable. This allows <see cref="T:System.Data.Common.DbCommandBuilder" /> to correctly generate Update statements for nullable columns.
  47. /// </summary>
  48. public override bool SourceColumnNullMapping { get; set; }
  49. /// <summary>
  50. /// Gets or sets the value of the parameter.
  51. /// </summary>
  52. public override object Value { get; set; }
  53. /// <summary>
  54. /// Resets the DbType property to its original settings.
  55. /// </summary>
  56. /// <exception cref="ExceptionBuilder.NotImplementedException(string)"></exception>
  57. public override void ResetDbType()
  58. {
  59. throw new NotImplementedException();
  60. }
  61. }
  62. }