private bool IsDeviceRegistered(SQLServerConnection SQLH) { EnsureTableExists(SQLH); bool registered = SQLH.Table <SyncDevicesInfo>().Any(x => x.DeviceId == DeviceId); this.RegisterStatus = registered ? DeviceRegisterStatus.Registered : DeviceRegisterStatus.NotRegistered; return(registered); }
public Device() { this.IDeviceInfo = new DeviceInfo(); this.DeviceId = IDeviceInfo.DeviceId; this.RegisterStatus = DeviceRegisterStatus.Unkown; }