Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit bb6cd06

Browse files
committed
Adding a line of help for people using this as a learning project
Added two lines of help for the people sent here from the ORMlite page so they can understand how to make it build as a standalone unit test as promised on that page.
1 parent f60d6fa commit bb6cd06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ServiceStack.OrmLite.Tests/UseCase/CustomerOrdersUseCase.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ public void Run()
134134
//Use in-memory Sqlite DB instead
135135
//var dbFactory = new OrmLiteConnectionFactory(
136136
// ":memory:", false, SqliteDialect.Provider);
137+
138+
//If you are trying to get this to build as a standalone example, use one of the dbFactory methods
139+
// above, instead of Config.OpenDbConnection in the using statement below.
137140

138141
//Non-intrusive: All extension methods hang off System.Data.* interfaces
139142
using (IDbConnection db = Config.OpenDbConnection())
@@ -221,4 +224,4 @@ public void Run()
221224
}
222225
}
223226

224-
}
227+
}

0 commit comments

Comments
 (0)