프로젝트

일반

사용자정보

개정판 e458a996

IDe458a9964db863a6c2e83e6fb2b7d72d1248880f
상위 1671c27d
하위 9d3fbdce

김태성이(가) 약 2년 전에 추가함

issue #0000 소스 복구

Change-Id: I3fbe27e09e119bac3f1ec3409ff77c58d7d2f13c

차이점 보기:

ID2.Manager/ID2.Manager.Dapper/Repository/BaseRepository.cs
98 98
            return this._DbConnection.Query<T>(sql);
99 99
        }
100 100

  
101
        public IEnumerable<TReturn> MultiQuery<TFirst, TSecond, TReturn>(string sql, Func<TFirst, TSecond, TReturn> map, object param = null, IDbTransaction transaction = null, bool buffered = true, string splitOn = "Id", int? commandTimeout = null, CommandType? commandType = null)
102
        {
103
            if (this._DbConnection.State != ConnectionState.Open)
104
            {
105
                this._DbConnection.Open();
106
            }
107

  
108
            return this._DbConnection.Query<TFirst, TSecond, TReturn>(sql, map: map, param: param, transaction: transaction, buffered: buffered, splitOn: splitOn, commandTimeout: commandTimeout, commandType: commandType);
109
        }
110

  
101 111
        public T QueryFirst<T>(string sql)
102 112
        {
103 113
            if (this._DbConnection.State != ConnectionState.Open)
......
115 125
                this._DbConnection.Open();
116 126
            }
117 127

  
118
            return this._DbConnection.QueryFirstOrDefault<T>(sql, param, transaction : dbTran);
128
            return this._DbConnection.QueryFirstOrDefault<T>(sql, param, transaction: dbTran);
119 129
        }
120 130

  
121 131

  
......
128 138

  
129 139
            return this._DbConnection.Query<T>(sql, param);
130 140
        }
131
        public IEnumerable<T> Query<T>(string sql, object param,CommandType commandType)
141
        public IEnumerable<T> Query<T>(string sql, object param, CommandType commandType)
132 142
        {
133 143
            if (this._DbConnection.State != ConnectionState.Open)
134 144
            {
135 145
                this._DbConnection.Open();
136 146
            }
137 147

  
138
            return this._DbConnection.Query<T>(sql, param,commandType: commandType);
148
            return this._DbConnection.Query<T>(sql, param, commandType: commandType);
139 149
        }
140 150

  
141 151
        public async Task<IEnumerable<T>> QueryAsync<T>(string sql)

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)