From f71e58dfc1e0ec5a8fd596f8d155ad436c9b35ea Mon Sep 17 00:00:00 2001 From: liguoyang Date: Mon, 29 Sep 2025 15:10:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=B0=83=E6=95=B4=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Device/Entities/EFenceDeviceRelationEntity.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs b/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs index a9b18c5c..1401fe1f 100644 --- a/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs +++ b/Src/Dlhis.Entity/Device/Entities/EFenceDeviceRelationEntity.cs @@ -7,20 +7,20 @@ namespace Dlhis.Entity.Device.Entities; /// /// 设备与电子围栏关系表 /// -[SugarTable("ElectronicFenceDeviceRelationEntity")] -[SugarIndex("idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode", new[] { nameof(DeviceCode), nameof(EFenceCode) }, new[] { OrderByType.Asc, OrderByType.Asc }, false)] +[SugarTable("ElectronicFenceDeviceRelation")] public class EFenceDeviceRelationEntity : SugarBaseEntity, ISoftDeleted { /// /// 设备ID /// - [SugarColumn(IsNullable = false)] + [SugarColumn(IsNullable = false, IndexGroupNameList = new[] { "idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode" })] public Guid DeviceCode { get; set; } /// /// 电子围栏ID /// - [SugarColumn(IsNullable = false)] + [SugarColumn(IsNullable = false, IndexGroupNameList = new[] { "idx_ElectronicFenceDeviceRelation_DeviceCode_EFenceCode" })] + public Guid EFenceCode { get; set; } public bool IsDeleted { get; set; }