From 2749a840ec5b72002a2ea0a04b846c52dfe4c579 Mon Sep 17 00:00:00 2001 From: njdaoyehu Date: Wed, 23 Apr 2025 11:29:54 +0800 Subject: [PATCH] fixed --- detect.gui/Context/DetectContext.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/detect.gui/Context/DetectContext.cs b/detect.gui/Context/DetectContext.cs index 16e1a5e..82a96a0 100644 --- a/detect.gui/Context/DetectContext.cs +++ b/detect.gui/Context/DetectContext.cs @@ -33,9 +33,9 @@ public class DetectContext : DbContext Set().Add(new UserAuthorityEntity { Id = 3, UserId = 1, AuthorityId = 3 }); Set().Add(new UserAuthorityEntity { Id = 4, UserId = 1, AuthorityId = 4 }); - Set().Add(new DeviceEntity { Id = 1, Name = "设备11", DeviceIp = "192.168.101.253" }); - Set().Add(new DeviceEntity { Id = 2, Name = "设备12" }); - Set().Add(new DeviceEntity { Id = 3, Name = "设备13" }); + // Set().Add(new DeviceEntity { Id = 1, Name = "设备11", DeviceIp = "192.168.101.253" }); + // Set().Add(new DeviceEntity { Id = 2, Name = "设备12" }); + // Set().Add(new DeviceEntity { Id = 3, Name = "设备13" }); SaveChanges(); }