دنبال کننده ها

۱۳۹۶ اسفند ۱۱, جمعه

c# - Entity Framework Querying with include

[ad_1]



public class Table



public int TableId get; set;



public int Num get; set;



public int NbSeats get; set;



public int R_LocationId get; set;



public virtual ICollection Availibilities get; set;



public partial class Availibility



 public System.TimeSpan StartTime get; set; 

public System.TimeSpan EndTime get; set;

public System.DateTime DayRes get; set;

public Nullable<bool> Available get; set;

public int TableId get; set;

public virtual Table Table get; set;



how to convert this query with Entity Framework ? thx for helps
select * from tables inner join Availibilities on Tables.TableId=Availibilities.TableId
where Availibilities.Available=1




[ad_2]

لینک منبع