|
Post by jayantharmj on Nov 6, 2023 0:17:08 GMT
I use ORM .So is there way use "COUNT" function . For example I want find the total in a column.
If it is impossible Have I to use system data ? Please help me.
|
|
|
Post by echo17 on Nov 6, 2023 13:23:24 GMT
You could set up an ORM class, like:
public class MyCount { public int TheCount { get; set; } }
Then, you can use it like:
bool exists; var record = dbManager.QueryFirstRecord<MyCount>(out exists, "SELECT COUNT(WeaponID) TheCount FROM Weapon"); if (exists) { Debug.Log(record.TheCount); }
|
|
|
Post by jayantharmj on Nov 6, 2023 14:24:57 GMT
Thank you so much ,I will try
|
|