You can use Dapper, Its high-performance Micro-ORM.
And your code should be similar to the one below. You can define properties and Use the proper overloaded method based on your requirement. The below code is just for reference.
public class Identifier
{
public int Attribute1;
public int Attribute2;
public int Attribute3;
}
using (var connection = new SqlConnection(_onpremisesFXecuteDBConnectionString))
{
CommandDefinition command = new CommandDefinition(<YourQuery>, null, null, null, CommandType.Text);
var identifier= connection.QueryFirstOrDefault<Identifier>(command);
}
Other options are to use Ado.Net code or EF as well, you can explore them as well.