コード例 #1
0
 public int SaveGroup(Contract contract, int groupId, string name, string schedulesXML)
 {
     return(groupId = new SqlDataExecutor().Execute <int>(contract.ConnectionString, contract.Database, StoredProcedure.SaveGroup, Convert.ToInt32,
                                                          new object[]
     {
         groupId
         , name
         , schedulesXML
     }
                                                          ));
 }
コード例 #2
0
 public User SetPasswordExpiration(User user)
 {
     if (user != null)
     {
         if (user.UserId != null)
         {
             ITypeReader reader = new SqlDataExecutor().QueryReader(null, _dbConnName, StoredProcedure.SetPasswordExpiration, user.UserId, "");
             reader.Read();
             user.PasswordExpiration = reader.GetDate("ExpirationDate");
         }
     }
     return(user);
 }