/// <summary> /// 根据用户Code获取用户信息 /// </summary> /// <param name="userCode">用户Code</param> /// <returns></returns> public static User GetUserbyCode(string userCode) { return(UserProvider.Instance().GetUserbyCode(userCode)); }
static UserProvider() { _defaultInstance = DataProviders.CreateInstance("FPLDQ.DataController.UserData, FPLDQ.DataController") as UserProvider; }
/// <summary> /// 根据用户ID获取用户信息 /// </summary> /// <param name="UserId"></param> /// <returns></returns> public static User GetUser(string UserId) { return(UserProvider.Instance().GetUser(UserId)); }
/// <summary> /// 删除用户 /// </summary> /// <param name="userId"></param> /// <returns></returns> public static bool DeleteUser(string userId) { return(UserProvider.Instance().DeleteUser(userId)); }
public static bool UpdateUsers(List <User> userlist) { return(UserProvider.Instance().UpdateUsers(userlist)); }
/// <summary> /// 更新用户 /// </summary> /// <param name="User"></param> /// <returns></returns> public static bool UpdateUser(User User) { return(UserProvider.Instance().UpdateUser(User)); }
/// <summary> /// 添加用户 /// </summary> /// <param name="User"></param> /// <returns></returns> public static bool AddUser(User User) { return(UserProvider.Instance().AddUser(User)); }