示例#1
0
        public bool SaveDevice(Bridge.Device device)
        {
            m_LmsContext.DbDevice.Add(new Device {
                DeviceName = device.DeviceName
            });
            int p = m_LmsContext.SaveChanges();

            return(p > 0);
        }
示例#2
0
        public bool SaveDevice(Bridge.Device device)
        {
            ReportDaoManager daoManager = new ReportDaoManager();

            return(daoManager.SaveDevice(device));
        }