Skip to content

Instantly share code, notes, and snippets.

@mikebeaton
Last active September 3, 2019 15:14
Show Gist options
  • Save mikebeaton/ebed50c34e74db8697e6631814869e4e to your computer and use it in GitHub Desktop.
Save mikebeaton/ebed50c34e74db8697e6631814869e4e to your computer and use it in GitHub Desktop.
Mighty article: Example #3
// use DynamicModel instead of MightyOrm for original Massive code
var db = new MightyOrm(connectionString);
var smiths = db.Query("SELECT * FROM Employees WHERE FamilyName = @0", "Smith");
foreach (var employee in smiths)
{
Console.WriteLine($"ID={employee.ID} GivenName={employee.GivenName}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment