Last active
September 3, 2019 15:14
-
-
Save mikebeaton/a37b3af481840373781353dc4436b940 to your computer and use it in GitHub Desktop.
Mighty article: Hydrating dynamic objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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