예제 #1
0
 public string GetUserEmail(string userID)
 {
   var creator = new SqlScriptCreator("hrcommon.dbo.enterpriseusers", new[] { string.Format("guid = '{0}'", userID) },
     "guid, userName, Email");
   var user = ReadSingleRecord(creator.GetSqlScript(), new UserCreator());
   return user.Email;
 }
예제 #2
0
 public EnterpriseUser GetEnterpriseUser(string userID)
 {
   var creator = new SqlScriptCreator("hrcommon.dbo.enterpriseusers", new[] { string.Format("guid = '{0}'", userID) });
   return ReadSingleRecord(creator.GetSqlScript(), new EnterpriseUserCreator());
 }