@@ -14,51 +14,194 @@ protected RepositoryActionBaseAttribute()
1414 public int Order { get ; set ; }
1515 public bool Enabled { get ; set ; }
1616
17+
18+ #region INIT
1719 public virtual void OnInitialized < T , TKey > ( RepositoryActionContext < T , TKey > context ) where T : class
1820 {
1921 }
2022
23+ public virtual void OnInitialized < T , TKey , TKey2 > ( RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
24+ {
25+ }
26+
27+ public virtual void OnInitialized < T , TKey , TKey2 , TKey3 > ( RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
28+ {
29+ }
30+
31+ public virtual void OnInitialized < T > ( RepositoryActionContext < T > context ) where T : class
32+ {
33+ }
34+ #endregion
35+
36+ #region ERROR
2137 public virtual void OnError < T , TKey > ( RepositoryActionContext < T , TKey > context , Exception ex ) where T : class
2238 {
2339 }
2440
41+ public virtual void OnError < T , TKey , TKey2 > ( RepositoryActionContext < T , TKey , TKey2 > context , Exception ex ) where T : class
42+ {
43+ }
44+
45+ public virtual void OnError < T , TKey , TKey2 , TKey3 > ( RepositoryActionContext < T , TKey , TKey2 , TKey3 > context , Exception ex ) where T : class
46+ {
47+ }
48+
49+ public virtual void OnError < T > ( RepositoryActionContext < T > context , Exception ex ) where T : class
50+ {
51+ }
52+ #endregion
53+
54+ #region ADD
2555 public virtual bool OnAddExecuting < T , TKey > ( T entity , RepositoryActionContext < T , TKey > context ) where T : class
2656 {
2757 return true ;
2858 }
2959
60+ public virtual bool OnAddExecuting < T , TKey , TKey2 > ( T entity , RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
61+ {
62+ return true ;
63+ }
64+ public virtual bool OnAddExecuting < T , TKey , TKey2 , TKey3 > ( T entity , RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
65+ {
66+ return true ;
67+ }
68+ public virtual bool OnAddExecuting < T > ( T entity , RepositoryActionContext < T > context ) where T : class
69+ {
70+ return true ;
71+ }
72+
3073 public virtual void OnAddExecuted < T , TKey > ( T entity , RepositoryActionContext < T , TKey > context ) where T : class
3174 {
3275 }
3376
77+ public virtual void OnAddExecuted < T , TKey , TKey2 > ( T entity , RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
78+ {
79+ }
80+
81+ public virtual void OnAddExecuted < T , TKey , TKey2 , TKey3 > ( T entity , RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
82+ {
83+ }
84+
85+ public virtual void OnAddExecuted < T > ( T entity , RepositoryActionContext < T > context ) where T : class
86+ {
87+ }
88+ #endregion
89+
90+ #region UPDATE
3491 public virtual bool OnUpdateExecuting < T , TKey > ( T entity , RepositoryActionContext < T , TKey > context ) where T : class
3592 {
3693 return true ;
3794 }
95+ public virtual bool OnUpdateExecuting < T , TKey , TKey2 > ( T entity , RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
96+ {
97+ return true ;
98+ }
99+ public virtual bool OnUpdateExecuting < T , TKey , TKey2 , TKey3 > ( T entity , RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
100+ {
101+ return true ;
102+ }
103+ public virtual bool OnUpdateExecuting < T > ( T entity , RepositoryActionContext < T > context ) where T : class
104+ {
105+ return true ;
106+ }
38107
39108 public virtual void OnUpdateExecuted < T , TKey > ( T entity , RepositoryActionContext < T , TKey > context ) where T : class
40109 {
41110 }
42111
112+ public virtual void OnUpdateExecuted < T , TKey , TKey2 > ( T entity , RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
113+ {
114+ }
115+
116+ public virtual void OnUpdateExecuted < T , TKey , TKey2 , TKey3 > ( T entity , RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
117+ {
118+ }
119+
120+ public virtual void OnUpdateExecuted < T > ( T entity , RepositoryActionContext < T > context ) where T : class
121+ {
122+ }
123+ #endregion
124+
125+ #region DELETE
43126 public virtual bool OnDeleteExecuting < T , TKey > ( T entity , RepositoryActionContext < T , TKey > context ) where T : class
44127 {
45128 return true ;
46129 }
130+ public virtual bool OnDeleteExecuting < T , TKey , TKey2 > ( T entity , RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
131+ {
132+ return true ;
133+ }
134+ public virtual bool OnDeleteExecuting < T , TKey , TKey2 , TKey3 > ( T entity , RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
135+ {
136+ return true ;
137+ }
138+ public virtual bool OnDeleteExecuting < T > ( T entity , RepositoryActionContext < T > context ) where T : class
139+ {
140+ return true ;
141+ }
47142
48143 public virtual void OnDeleteExecuted < T , TKey > ( T entity , RepositoryActionContext < T , TKey > context ) where T : class
49144 {
50145 }
146+ public virtual void OnDeleteExecuted < T , TKey , TKey2 > ( T entity , RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
147+ {
148+ }
149+ public virtual void OnDeleteExecuted < T , TKey , TKey2 , TKey3 > ( T entity , RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
150+ {
151+ }
152+ public virtual void OnDeleteExecuted < T > ( T entity , RepositoryActionContext < T > context ) where T : class
153+ {
154+ }
155+ #endregion DELETE
51156
157+ #region SAVE
52158 public virtual bool OnSaveExecuting < T , TKey > ( RepositoryActionContext < T , TKey > context ) where T : class
53159 {
54160 return true ;
55161 }
162+ public virtual bool OnSaveExecuting < T , TKey , TKey2 > ( RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
163+ {
164+ return true ;
165+ }
166+ public virtual bool OnSaveExecuting < T , TKey , TKey2 , TKey3 > ( RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
167+ {
168+ return true ;
169+ }
170+ public virtual bool OnSaveExecuting < T > ( RepositoryActionContext < T > context ) where T : class
171+ {
172+ return true ;
173+ }
56174
57175 public virtual void OnSaveExecuted < T , TKey > ( RepositoryActionContext < T , TKey > context ) where T : class
58176 {
59177 }
178+ public virtual void OnSaveExecuted < T , TKey , TKey2 > ( RepositoryActionContext < T , TKey , TKey2 > context ) where T : class
179+ {
180+ }
181+ public virtual void OnSaveExecuted < T , TKey , TKey2 , TKey3 > ( RepositoryActionContext < T , TKey , TKey2 , TKey3 > context ) where T : class
182+ {
183+ }
184+ public virtual void OnSaveExecuted < T > ( RepositoryActionContext < T > context ) where T : class
185+ {
186+ }
187+ #endregion
188+
189+ #region GET
190+ public virtual bool OnGetExecuting < T , TKey , TResult > ( RepositoryGetContext < T , TKey , TResult > context ) where T : class
191+ {
192+ return true ;
193+ }
194+
195+ public virtual bool OnGetExecuting < T , TKey , TKey2 , TResult > ( RepositoryGetContext < T , TKey , TKey2 , TResult > context ) where T : class
196+ {
197+ return true ;
198+ }
199+
200+ public virtual bool OnGetExecuting < T , TKey , TKey2 , TKey3 , TResult > ( RepositoryGetContext < T , TKey , TKey2 , TKey3 , TResult > context ) where T : class
201+ {
202+ return true ;
203+ }
60204
61- /* Queries */
62205 public virtual bool OnGetExecuting < T , TKey , TResult > ( RepositoryGetContext < T , TKey , TResult > context ) where T : class
63206 {
64207 return true ;
@@ -76,7 +219,9 @@ public virtual bool OnGetAllExecuting<T, TKey, TResult>(RepositoryQueryMultipleC
76219 public virtual void OnGetAllExecuted < T , TKey , TResult > ( RepositoryQueryMultipleContext < T , TKey , TResult > context ) where T : class
77220 {
78221 }
222+ #endregion
79223
224+ #region FIND
80225 public virtual bool OnFindExecuting < T , TKey , TResult > ( RepositoryQuerySingleContext < T , TKey , TResult > context ) where T : class
81226 {
82227 return true ;
@@ -94,5 +239,6 @@ public virtual bool OnFindAllExecuting<T, TKey, TResult>(RepositoryQueryMultiple
94239 public virtual void OnFindAllExecuted < T , TKey , TResult > ( RepositoryQueryMultipleContext < T , TKey , TResult > context ) where T : class
95240 {
96241 }
242+ #endregion
97243 }
98244}
0 commit comments