Monday, 15 March 2010

c# - Match only the begining of the string in a MongoDB query -



c# - Match only the begining of the string in a MongoDB query -

i attempting match snippet of text begining of string mongodb.

i have tried plethora of structures not working, assume query should like:

var datalist = _dataservice.getcollectionquerymodel<user>( query.and( query.eq("isactive", true), query.matches("fullname", "/^" + query + "/") ) );

however returns nothing, if pass query in lone info returned match part of firstname, ideas?

c# regex mongodb

No comments:

Post a Comment