문제

I'm trying to use the built-in testing features of Subsonic 3.0.0.4 by setting my connection string to "Test". My data access routines use the SqlQuery class. When I try to run a test against the "in-memory" repository, I receive this error:

System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.

When debugging, I can see that the database class, which inherits from IQuerySurface, is in test mode.

Is it possible to use the built-in testing feature in Subsonic with ActiveRecord and SQLQuery?

도움이 되었습니까?

해결책

Is it possible to use the built-in testing feature in Subsonic with ActiveRecord and SQLQuery?

No the built-in testing only works with Linq queries

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top