List<EventPhotos> resList = null; resList = pe.Database.SqlQuery<EventPhotos>(sqlQuery, param).ToList();
public partial class EventPhotos { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public EventPhotos() { } public EventInfo EventInformation { get; set; } public ImageInfo ImageInformation { get; set; } } public class EventInfo { public string EventID { get; set; } public string EventName { get; set; } public bool IsJoint { get; set; } } public class ImageInfo { public string ImageID { get; set; } public string EventMediaFolder { get; set; } public string Image { get; set; } public string DateTime { get; set; } public string ImageDescription { get; set; } public string Action { get; set; } }
SqlQuery
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)