12345678910111213141516171819202122232425262728293031 |
- 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<DeviceFault> GetDeviceFault()
- {
- IList<DeviceFault> list = new List<DeviceFault>();
- try
- {
- using (GDNXFDDbContext ctx = new GDNXFDDbContext())
- {
- list = ctx.DeviceFault.Select(s=>s).ToList();
- }
- }
- catch (Exception ex)
- {
- }
- return list;
- }
- }
- }
|