duheng
2024-07-23 64fc752794b8bdb846f7af17c7722955363a2a8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
using HStation.CAL;
using HStation.DAL;
using HStation.Dto;
using Yw.CAL;
using Yw.DAL.Basic;
using Yw.Dto;
 
namespace HStation.BLL
{
    /// <summary>
    ///
    /// </summary>
    public class LoginUserMain : CAL.ILoginUserMain
    {
        private readonly HStation.CAL.ILoginUserMain _cal = CALCreateHelper.CreateCAL<HStation.CAL.ILoginUserMain>();
 
        #region Query
 
        /// <summary>
        ///
        /// </summary>
        public async Task<List<LoginUserMainDto>> GetAll()
        {
            return await _cal.GetAll();
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<LoginUserMainDto> GetByID(long ID)
        {
            return await _cal.GetByID(ID);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<List<LoginUserMainDto>> GetByIds(List<long> Ids)
        {
            return await _cal.GetByIds(Ids);
        }
 
        #endregion Query
 
        #region Insert
 
        /// <summary>
        ///
        /// </summary>
        public async Task<long> Insert(AddLoginUserMainDto model)
        {
            return await _cal.Insert(model);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Inserts(List<AddLoginUserMainDto> list)
        {
            return await _cal.Inserts(list);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> BulkInserts(List<AddLoginUserMainDto> list)
        {
            return await _cal.BulkInserts(list);
        }
 
        #endregion Insert
 
        #region Update
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Update(UpdateLoginUserMainDto model)
        {
            return await _cal.Update(model);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Updates(List<UpdateLoginUserMainDto> list)
        {
            return await _cal.Updates(list);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> BulkUpdates(List<UpdateLoginUserMainDto> list)
        {
            return await _cal.BulkUpdates(list);
        }
 
        #endregion Update
 
        #region Delete
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> DeleteByID(long ID)
        {
            return await _cal.DeleteByID(ID);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> DeleteByIds(List<long> Ids)
        {
            return await _cal.DeleteByIds(Ids);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> DeleteAll()
        {
            return await _cal.DeleteAll();
        }
 
        #endregion Delete
    }
}