|
Post by karcfa on Feb 26, 2023 10:28:17 GMT
Code:
List<Weapon> weapons = new List<Weapon> (from w in Table<Weapon> () where w.WeaponName == "Sword" select w).FirstOrDefault (); I get this error:
I tried searching for namespace in google and testing few of them but nothing helped.
These are the namespaces im using:
|
|
|
Post by echo17 on Feb 27, 2023 10:15:34 GMT
You need to reference the SimpleSQLManager that you are using to get the data. Also, unrelated to the error, but you are getting a single result and trying to store it in a list.
Try this instead:
Weapon weapon = new List<Weapon>(from w in dbManager.Table<Weapon>() where w.WeaponName == "Sword" select w).FirstOrDefault();
|
|