I am working with Entity Framework Code First, and am trying to create a class that will map to a View. I know how to do it for a table, like below:
[Table("FIL002")]
public class FIL002
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.None)]
public Int64 Payer_Number { get; set; }
public string Payer_Name { get; set; }
}
However, I could not find an attribute for View (Like [Table(...)]
. Is there one?