I'm trying to use table name as variables
Base on this question here
I'm able to do it in some cases but in this one:
var usersId = db[tableNameLabel].All().Select(db[tableNameLabel].userid,
db[tableNameLabel].rating.Count().As("Count"));
I get the next error:
"The best overloaded method match for 'Simple.Data.DataStrategy.this[string]' has some invalid arguments"
Update:
Fixed it.
var usersId = db[tableNameLabel.Text].All().Select(db[tableNameLabel.Text].userid,
db[tableNameLabel.Text].rating.Count().As("Count"));
Needed tableNameLabel.Text.
Thanks