I have to execute a sql string in .net core so first I added a Dbquery type entity in dbcontext.
internal DbQuery MyDataList{ get; set; }