You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following method will crash with an NotSupportedException("The constant for 'byte[]' is not supported") thrown at MongoQueryTranslator.cs:699. Any chance to get this to work or is this a limitation of MongoDb or BSON?
public Guid? GetUserIdByUsernamePassword(string Username, byte[] Password)
{
using (var db = ServiceLocator.Get())
{
var users = db.GetCollection();
var user = users.AsQueryable().Where(x => x.Username == Username && x.Password == Password).FirstOrDefault();
if (user == null)
return null;
return user.Id;
}
}
The text was updated successfully, but these errors were encountered:
The following method will crash with an NotSupportedException("The constant for 'byte[]' is not supported") thrown at MongoQueryTranslator.cs:699. Any chance to get this to work or is this a limitation of MongoDb or BSON?
public Guid? GetUserIdByUsernamePassword(string Username, byte[] Password)
{
using (var db = ServiceLocator.Get())
{
var users = db.GetCollection();
var user = users.AsQueryable().Where(x => x.Username == Username && x.Password == Password).FirstOrDefault();
}
The text was updated successfully, but these errors were encountered: