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
markrendle edited this page Oct 13, 2010
·
10 revisions
Dynamic Find methods
The dynamic Table properties exposed by the Database object will accept a variety of methods starting with Find. Methods starting with FindBy return a single dynamic object; methods starting with FindAllBy return an IEnumerable<dynamic>.
FindBy
Simple.Data:
db.Users.FindByNameAndPassword(name, password)
SQL:
SELECT * FROM Users WHERE Name = @Name and Password = @Password