I am using EF6 and I am trying to get the table sizes. I believe this should work but the result comes back as zero:
public class SqlRes{
public int Size { get; set; }
}
var size = DbContext.Database.SqlQuery<SqlRes>("exec sp_spaceused Customer").ToList();
I have also tried to use type like string or int with no success. Please help.