Skip to content

Database Path

Milkenm edited this page May 9, 2019 · 4 revisions

You need to give the class the database location, right? For that, you need to insert that code line into your load event.

Syntax:

SlDatabase._DatabasePath = <PATH>;
# PATH: The location where the database is located, including the database name.

Example:

using ScriptsLib.Database;

namespace Scripts
{
	public partial class Main : Form
	{
		public Main()
		{
			SlDatabase._DatabasePath = @"C:\Data\Database.mdf";
		}
	}
}

If you don't have a database, you can create one using the CreateDatabase thing.

Clone this wiki locally