View Full Version : Example for data access
ctlqt12
08-15-2007, 12:34 PM
Hi all,
I'm newbie of Spring.Net. After downloading Spring.NET-1.1-M2.zip, i run Spring.DataQuickStart example. But i don't really understand how to access database.
Could you please give me some example about this?
Mark Pollack
08-16-2007, 09:27 PM
Hi,
You need to configure the database connection string in the Examples.xml as appropriate for you database. The tests were written with the assumption of a nunit testing environment integrated into the ide, either via TestDriven.NET or Resharper. Once the connection information is set, then you can simply execute one of the tests, say CallbacDaoTest, to exercise the method FindCountWithPostalCode on the class CommandCallbackDao. I will be updating the examples to be console or winform applications to make it easier to use. I've also updated the documentation (http://www.springframework.net/doc-latest/reference/html/data-quickstart.html) providing a little more guidance.
Cheers,
Mark
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.