Answers
Executeis the Dapper method that executes a stored procedure, returning no results.QueryFirstis the Dapper method for reading a single record of data where the record is guaranteed to exist.Queryis the Dapper method for reading a collection of records.- The problem with the query is that it expects a parameter called
Searchbut we have passed it a parameter calledCriteria. So, Dapper won't be able to map the SQL parameter. - The problem is that the stored procedure returns a field called
BuildingId, which won't automatically get mapped to theIdproperty in the class because the names are different. - Yes!
DbUpcan execute any SQL script, and can also deploy new reference data for a table.