john
New Member
Posts: 2
|
Post by john on Dec 6, 2020 4:14:24 GMT
Why am I seeing this error?
I copied the code right from the doumentation.
void Start()
{
List<Weapon> weapons = dbManager.Query<Weapon>("SELECT * FROM Weapons");
}
Any thoughts?
|
|
|
Post by echo17 on Dec 6, 2020 15:18:26 GMT
You need to put a SimpleSQL namespace at the top of your code. Like:
using SimpleSQL;
Alternatively, you can pass the namespace directly in your code (though this requires more typing and is not recommended). Like:
void Start()
{
List<Weapon> weapons = SimpleSQL.dbManager.Query<Weapon>("SELECT * FROM Weapons");
}
|
|
john
New Member
Posts: 2
|
Post by john on Dec 6, 2020 16:28:34 GMT
Ok. I was doing both. I will just use the Using and see where that get me.
Thank you.
|
|