瀏覽代碼

renamed crud specific methods

tags/v0.6.0
Robin Thoni 7 年之前
父節點
當前提交
29d96d6623

+ 3
- 3
Luticate2.Utils/Business/LuCrudWebSocketNotificationsBusiness.cs 查看文件

28
 
28
 
29
         public void NotifyCreate(Type crudType, object newEntity)
29
         public void NotifyCreate(Type crudType, object newEntity)
30
         {
30
         {
31
-            _luWebSocketNotificationsBusiness.NotifyCreate(GetEntityType(crudType), newEntity);
31
+            _luWebSocketNotificationsBusiness.NotifyCrudCreate(GetEntityType(crudType), newEntity);
32
         }
32
         }
33
 
33
 
34
         public void NotifyUpdate(Type crudType, object oldEntity, object newEntity)
34
         public void NotifyUpdate(Type crudType, object oldEntity, object newEntity)
35
         {
35
         {
36
-            _luWebSocketNotificationsBusiness.NotifyUpdate(GetEntityType(crudType), oldEntity, newEntity);
36
+            _luWebSocketNotificationsBusiness.NotifyCrudUpdate(GetEntityType(crudType), oldEntity, newEntity);
37
         }
37
         }
38
 
38
 
39
         public void NotifyDelete(Type crudType, object oldEntity)
39
         public void NotifyDelete(Type crudType, object oldEntity)
40
         {
40
         {
41
-            _luWebSocketNotificationsBusiness.NotifyDelete(GetEntityType(crudType), oldEntity);
41
+            _luWebSocketNotificationsBusiness.NotifyCrudDelete(GetEntityType(crudType), oldEntity);
42
         }
42
         }
43
     }
43
     }
44
 }
44
 }

+ 3
- 3
Luticate2.Utils/Business/LuUtilsBusinessExtensions.cs 查看文件

5
 {
5
 {
6
     public static class LuUtilsBusinessExtensions
6
     public static class LuUtilsBusinessExtensions
7
     {
7
     {
8
-        public static void NotifyCreate(this ILuNotificationsBusiness business, string entityType, object newEntity)
8
+        public static void NotifyCrudCreate(this ILuNotificationsBusiness business, string entityType, object newEntity)
9
         {
9
         {
10
             business.Notify(LuUtilsConstants.EventCreate, entityType, null, newEntity);
10
             business.Notify(LuUtilsConstants.EventCreate, entityType, null, newEntity);
11
         }
11
         }
12
 
12
 
13
-        public static void NotifyUpdate(this ILuNotificationsBusiness business, string entityType, object oldEntity, object newEntity)
13
+        public static void NotifyCrudUpdate(this ILuNotificationsBusiness business, string entityType, object oldEntity, object newEntity)
14
         {
14
         {
15
             business.Notify(LuUtilsConstants.EventUpdate, entityType, oldEntity, newEntity);
15
             business.Notify(LuUtilsConstants.EventUpdate, entityType, oldEntity, newEntity);
16
         }
16
         }
17
 
17
 
18
-        public static void NotifyDelete(this ILuNotificationsBusiness business, string entityType, object oldEntity)
18
+        public static void NotifyCrudDelete(this ILuNotificationsBusiness business, string entityType, object oldEntity)
19
         {
19
         {
20
             business.Notify(LuUtilsConstants.EventDelete, entityType, oldEntity, null);
20
             business.Notify(LuUtilsConstants.EventDelete, entityType, oldEntity, null);
21
         }
21
         }

Loading…
取消
儲存