例如SQL视图的工作,我有这样的模式:与实体框架的核心
public class Blog
{
public int BlogId { get; set; }
public string Url { get; set; }
public BlogImage BlogImage { get; set; }
}
public class BlogImage
{
public int BlogImageId { get; set; }
public byte[] Image { get; set; }
public string Caption { get; set; }
public int BlogId { get; set; }
public Blog Blog { get; set; }
}
我想在的ImageView视图地址和图片返回。
我需要在哪里创建和定义SQL视图?
SQL查询,我想你可能需要提供更多的资源。这与MVC有关吗? – Willwsharp
@Willwsharp是的,它涉及到asp.net核心 –
我的意思是这是一个MVC应用程序?在中,你是指创建一个MVC视图?另外,你究竟想要返回什么?我认为你应该编辑你的问题,以更好地反映你正在尝试做什么。 – Willwsharp