ef 原始sql

var blogs = context.Blogs .FromSqlRaw("SELECT * FROM dbo.Blogs") .ToList();

原文地址:https://www.cnblogs.com/buchizaodian/p/14162503.html