i written this sql query and my environment is using RIA, Object Context in Domain Service Class to load data by default. but now i not sure how to retrieve and dump it into generic list structure of below
public class LectAllInfo
{
public DateTime StartTime {get;set;}
public DateTime EndTime {get;set;}
public string Venue {get;set;}
public string Purpose {get;set;}
}
Generic List Content
May i know how should i write the code to withdraw the data from object context with RIA and dump into list ? Thank you for reply
You should use a stored procedure mapped to a ‘function’.
Update from database...)Add function import...(it’s one of the top options), which will open the function import dialog.Create new complex type. A class will be created that contains a result of the stored procedure.Now you’ll have a function on your
ObjextContext, named according to the choices you made. You call it very simply: