Im looping through all the results from the SQL query in a .Net Core project. here is Model
public class Mymessagesinfo { public int MyMessagesCount {