-
-
Notifications
You must be signed in to change notification settings - Fork 0
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.