How can I find record without id?

This doesn't work

Wallet wallet = db.Wallet.Where(n => n.Name == My.Name && n.UserId == userId);

This works fine

Wallet wallet = db.Wallet.Find();

Related posts

Recent Viewed