Beispiel #1
0
        /// <summary>
        /// User Insert
        /// </summary>
        /// <returns>true, wenn Insert erfogreich</returns>
        public bool UserInsert(clsUser newUser)
        {
            // hier könnte man checken ob es den User schon in der DB gibt !? Wollen wir doppelte Usernamen haben?

            if (_usrCol.InsertUser(newUser) == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        } // UserInsert()
 /// <summary>
 /// Einfügen dieses Users in die Datenbank
 /// </summary>
 /// <returns>true if successful</returns>
 public bool Insert()
 {
     clsUserCollection _usrCol = new clsUserCollection();
     return (_usrCol.InsertUser(this) == 1);
 }
        /// <summary>
        /// Einfügen dieses Users in die Datenbank
        /// </summary>
        /// <returns>true if successful</returns>
        public bool Insert()
        {
            clsUserCollection _usrCol = new clsUserCollection();

            return(_usrCol.InsertUser(this) == 1);
        } // Insert()