This commit is contained in:
njdaoyehu 2025-04-23 11:29:54 +08:00
parent c89d26d177
commit 2749a840ec

View File

@ -33,9 +33,9 @@ public class DetectContext : DbContext
Set<UserAuthorityEntity>().Add(new UserAuthorityEntity { Id = 3, UserId = 1, AuthorityId = 3 }); Set<UserAuthorityEntity>().Add(new UserAuthorityEntity { Id = 3, UserId = 1, AuthorityId = 3 });
Set<UserAuthorityEntity>().Add(new UserAuthorityEntity { Id = 4, UserId = 1, AuthorityId = 4 }); Set<UserAuthorityEntity>().Add(new UserAuthorityEntity { Id = 4, UserId = 1, AuthorityId = 4 });
Set<DeviceEntity>().Add(new DeviceEntity { Id = 1, Name = "设备11", DeviceIp = "192.168.101.253" }); // Set<DeviceEntity>().Add(new DeviceEntity { Id = 1, Name = "设备11", DeviceIp = "192.168.101.253" });
Set<DeviceEntity>().Add(new DeviceEntity { Id = 2, Name = "设备12" }); // Set<DeviceEntity>().Add(new DeviceEntity { Id = 2, Name = "设备12" });
Set<DeviceEntity>().Add(new DeviceEntity { Id = 3, Name = "设备13" }); // Set<DeviceEntity>().Add(new DeviceEntity { Id = 3, Name = "设备13" });
SaveChanges(); SaveChanges();
} }