@@ -58,7 +58,7 @@ public DapperImplementor(ISqlGenerator sqlGenerator)
5858
5959 public T Get < T > ( IDbConnection connection , dynamic id , IDbTransaction transaction , int ? commandTimeout , IList < IReferenceMap > includedProperties = null ) where T : class
6060 {
61- return InternalGet < T > ( connection , id , transaction , commandTimeout , null , includedProperties ) ;
61+ return ( T ) InternalGet < T > ( connection , id , transaction , commandTimeout , null , includedProperties ) ;
6262 }
6363
6464 public TOut GetPartial < TIn , TOut > ( IDbConnection connection , Expression < Func < TIn , TOut > > func , dynamic id , IDbTransaction transaction , int ? commandTimeout , IList < IReferenceMap > includedProperties = null ) where TIn : class where TOut : class
@@ -770,7 +770,7 @@ protected void InternalUpdate<T>(IDbConnection connection, IEnumerable<T> entiti
770770
771771 protected T InternalGet < T > ( IDbConnection connection , dynamic id , IDbTransaction transaction , int ? commandTimeout , IList < IProjection > colsToSelect , IList < IReferenceMap > includedProperties = null ) where T : class
772772 {
773- IEnumerable < T > result = InternalGetListAutoMap < T > ( connection , id , null , transaction , commandTimeout , true , colsToSelect , includedProperties ) ;
773+ var result = ( IEnumerable < T > ) InternalGetListAutoMap < T > ( connection , id , null , transaction , commandTimeout , true , colsToSelect , includedProperties ) ;
774774 return result . SingleOrDefault ( ) ;
775775 }
776776
0 commit comments