sqlsugar/Src/Asp.NetCore2/KdbndpTest/OracleDemo/UnitTest/UValidate.cs

20 lines
490 B
C#
Raw Normal View History

2025-05-11 16:20:50 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KdbndpTest.OracleDemo.UnitTest
{
public class UValidate
{
public static void Check(object a, object b, object name)
{
if (a?.ToString()?.Replace(" ", "").Trim().ToLower() != b?.ToString().Replace(" ", "")?.Trim().ToLower())
{
throw new Exception(name + " error");
}
}
}
}