SqlMethodAttribute.cs 864 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // System.Data.Sql.SqlMethodAttribute
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. #if NET_1_2
  10. using System;
  11. namespace System.Data.Sql {
  12. [AttributeUsage (AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
  13. [Serializable]
  14. public sealed class SqlMethodAttribute : SqlFunctionAttribute
  15. {
  16. #region Fields
  17. bool isMutator;
  18. bool onNullCall;
  19. #endregion // Fields
  20. #region Constructors
  21. public SqlMethodAttribute ()
  22. : base ()
  23. {
  24. isMutator = false;
  25. onNullCall = false;
  26. }
  27. #endregion // Constructors
  28. #region Properties
  29. public bool IsMutator {
  30. get { return isMutator; }
  31. set { isMutator = value; }
  32. }
  33. public bool OnNullCall {
  34. get { return onNullCall; }
  35. set { onNullCall = value; }
  36. }
  37. #endregion // Properties
  38. }
  39. }
  40. #endif