using System; namespace OpenAuth.Repository.Domain { /// /// 用户ID /// public static class UserExt { public static void CheckPassword(this SysUser sysUser, string password) { if (sysUser.Password != password) { throw new Exception("密码错误"); } } } }