303687749f406bbe06a76534a706954ee7c18371
[mono.git] / mcs / class / referencesource / System.Data / System / Data / Sql / SqlTriggerAttribute.cs
1 //------------------------------------------------------------------------------
2 //  <copyright file="SqlTriggerAttribute.cs" company="Microsoft Corporation">
3 //     Copyright (c) Microsoft Corporation. All Rights Reserved.
4 //     Information Contained Herein is Proprietary and Confidential.
5 //  </copyright>
6 // <owner current="true" primary="true">Microsoft</owner>
7 // <owner current="true" primary="true">Microsoft</owner>
8 // <owner current="true" primary="true">daltudov</owner>
9 // <owner current="true" primary="true">Microsoft</owner>
10 // <owner current="true" primary="false">beysims</owner>
11 // <owner current="true" primary="false">Microsoft</owner>
12 // <owner current="true" primary="false">vadimt</owner>
13 //------------------------------------------------------------------------------
14
15 using System; 
16
17 namespace Microsoft.SqlServer.Server {
18
19     [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false), Serializable]
20     public sealed class SqlTriggerAttribute : System.Attribute {
21         private string m_fName;
22         private string m_fTarget;
23         private string m_fEvent;
24
25         public SqlTriggerAttribute() {
26             // default values
27             m_fName = null;
28             m_fTarget = null;
29             m_fEvent = null;
30         } 
31
32         public string Name {
33             get {
34                 return m_fName;
35             }
36             set {
37                 m_fName = value;
38             }
39         }
40
41         public string Target {
42             get {
43                 return m_fTarget;
44             }
45             set {
46                 m_fTarget = value;
47             }
48         }
49
50         public string Event {
51             get {
52                 return m_fEvent;
53             }
54             set {
55                 m_fEvent = value;
56             }
57         }
58     }
59 }
60