File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public int ExecuteNonQuery() {
111111 /// </remarks>
112112 protected virtual void OnInstanceCreated ( object obj ) { }
113113
114- public IEnumerable < T > ExecuteQuery < T > ( TableMapping map ) {
114+ public IEnumerable < object > ExecuteQuery ( TableMapping map ) {
115115 Sqlite3Statement statement = Prepare ( ) ;
116116 try {
117117 while ( SQLiteRaw . Step ( statement ) is SQLiteRaw . Result . Row ) {
@@ -132,13 +132,16 @@ public IEnumerable<T> ExecuteQuery<T>(TableMapping map) {
132132 column . SetValue ( obj , value ) ;
133133 }
134134 OnInstanceCreated ( obj ) ;
135- yield return ( T ) obj ;
135+ yield return obj ;
136136 }
137137 }
138138 finally {
139139 SQLiteRaw . Finalize ( statement ) ;
140140 }
141141 }
142+ public IEnumerable < T > ExecuteQuery < T > ( TableMapping map ) {
143+ return ExecuteQuery ( map ) . Cast < T > ( ) ;
144+ }
142145 public IEnumerable < T > ExecuteQuery < T > ( ) {
143146 return ExecuteQuery < T > ( _connection . GetMapping < T > ( ) ) ;
144147 }
You can’t perform that action at this time.
0 commit comments