Open ankurjasoria opened 5 years ago
Works fine for me:
conn.SetupDapper(c => c.Query
However, you can't use something like c.QueryFirst as it will give a "not supported" error message.
@ankurjasoria you can use stored procedures with this just fine. You can do something like this:
connection.SetupDapperAsync(c => c.QueryAsync<T>( It.IsAny<string>(), new DynamicParameters(), null, null, CommandType.StoredProcedure )).ReturnsAsync(expected);
@darthmolen every dapper function isn't in this library yet. QueryFirst is one that isn't.
@ankurjasoria can you show us some code? does what @darthmolen and @ricochetbrown work for you?
Hi All.
I am currently using Dapper in my .net application but unable to make Unit Test for Dapper when I am currently using stored procedure not inline queries.
Please help me for same.