1
如果我有一个像实体框架查询的多标签云相关的帖子
[Table("MTag")]
public class Tag
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int TagId { get; set; }
public string TagLabel { get; set; }
public virtual ICollection<TagRef> RefTags { get; set; }
}
[Table("TagRef")]
public class TagRef
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int TagRefId { get; set; }
public virtual Tag Tag { get; set; }
public virtual ICollection<Post> Posts { get; set; }
}
[Table("Post")]
public class Post
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int PostId { get; set; }
public UserProfile User { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string PostGuid { get; set; }
public string Make { get; set; }
public string Model { get; set; }
public virtual ICollection<MTagRef> Tags { get; set; }
public string ImageFileName { get; set; }
public int Price { get; set; }
public int ImageWidth { get; set; }
public int ImageHeight { get; set; }
}
什么是可能的查询选择所有匹配的岗位模型类?你能给我一个提示,如果我有像Car,Mobile这样的标签如何设置查询吗?
能不能请您详细说明更多*选择所有匹配的职位*?这里的匹配是基于哪些条件? –
匹配到什么? –
我想选择所有与车辆或电子设备相匹配的标签。 –