using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GDNXFD.Data { public class DeviceFaultRepository { public static IList GetDeviceFault() { IList list = new List(); try { using (GDNXFDDbContext ctx = new GDNXFDDbContext()) { list = ctx.DeviceFault.Select(s=>s).ToList(); } } catch (Exception ex) { } return list; } } }