Clothes.DAL/UserService.cs
(完整代码) 921Busing Clothes.IDAL;
using Clothes.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Clothes.DAL
{
/// <summary>
/// 用户信息数据服务类
/// </summary>
public class UserService : IUserService
{
public CLUser EditAvatar(CLUser profile)
{
throw new NotImplementedException();
}
public CLUser EditWithoutAvatar(CLUser profile)
{
throw new NotImplementedException();
}
/// <summary>
/// 通过用户编号查找
/// </summary>
/// <param name="userId"></param>
/// <returns></returns>
public CLUser FindByUserId(int userId)
{
ClothesContext dbContext = new ClothesContext();
return dbContext.CLUser.SingleOrDefault(m => m.Id == userId);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。