We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Simple.Data method Find is used to retrieve all data that satisfy search criteria.
Find a product with the given name:
var product = _db.Products.Find(_db.Products.ProductName == "Chai"); Assert.Equal("Chai", product.ProductName);
Find a product with the given category and supplier:
var product = _db.Products.Find(_db.Products.CategoryID == 1 && _db.Products.SupplierID == 1); Assert.Equal("Chai", product.ProductName);
See also: Simple.Data documentation for Find