变量类验证提示

This commit is contained in:
Diego
2025-07-22 11:03:48 +08:00
parent 232ee5d5d4
commit 3b8b00c783

View File

@@ -506,7 +506,7 @@ public class Variable : BaseDataEntity, IValidatableObject
{
if (string.IsNullOrEmpty(RegisterAddress) && string.IsNullOrEmpty(OtherMethod))
{
yield return new ValidationResult("Both RegisterAddress and OtherMethod cannot be empty or null.", new[] { nameof(RegisterAddress), nameof(OtherMethod) });
yield return new ValidationResult("Both RegisterAddress and OtherMethod cannot be empty or null.", new[] { nameof(OtherMethod), nameof(RegisterAddress) });
}
if (HHAlarmEnable && HAlarmEnable && HHAlarmCode <= HAlarmCode)