mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
20 lines
490 B
C#
20 lines
490 B
C#
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");
|
|
}
|
|
}
|
|
}
|
|
}
|