私は次のクラスを持っています:
public class Movie
{
string Name get; set;
string Director get; set;
IList<String> Tags get; set;
}
タグをクエリするにはどうすればよいですか?を使用してSQLとしてクエリを実行したいlike %term%。で試しまし/term/iたが、動作しません。
term = string.Format(@"/{0}/i", term);
var tags = db.GetCollection().Find(
new { Tags = term },
new { Tags = OrderBy.Descending },
new { Tags = 1}, 8, 0).ToList();
何か案は?