public List<EventEntity> GetCurrentUpComingEventsByEstate(string estName)
{
EventDBModelDataContext context = new EventDBModelDataContext();
var res = from e in context.EventEntities
where e.estateName==estName
&& e.eventDate >= DateTime.Now
select e;
return res.ToList();
}
[OperationContract]
[WebInvoke(Method = "GET", UriTemplate = "GetCurrentUpComingEventsByEstate?estateName={estName}",
RequestFormat = WebMessageFormat.Xml,
ResponseFormat = WebMessageFormat.Xml)]
List<EventEntity> GetCurrentUpComingEventsByEstate(string estName);
Hi guys, may i know how to add in a joint statement so that i'll be able to select data in multiple tables ?
I have 2 database table; EventEntity and Estate. the eventDate and estateName belongs to the EventEntity table whereas in my Estate table, there is only one field, estateName. Can someone help me with coding whereby i can join both table together and retrieve the data out.
Thanks.(: