Beispiel #1
0
 public bool UpdateUser(T_User user)
 {
     using (BugTrackLikeEntities bugtrack = new BugTrackLikeEntities ())
     {
         ObjectResult<T_User> us = bugtrack.UpdateUser(user.id, user.email, user.phone, user.password);
         if (us != null)
         {
             return true;
         }
         return false;
     }
 }
Beispiel #2
0
        public bool CreateUser(T_User user)
        {
            using (BugTrackEntities2 bugtrack = new BugTrackEntities2())
            {
                ObjectResult<T_User> us = bugtrack.CreateUser(user.name, user.firstname, user.email, user.phone, user.password);

                if (us != null)
                {
                    return true;
                }
                return false;

            }
        }
Beispiel #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the T_User EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToT_User(T_User t_User)
 {
     base.AddObject("T_User", t_User);
 }
Beispiel #4
0
 /// <summary>
 /// Create a new T_User object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="firstname">Initial value of the firstname property.</param>
 /// <param name="email">Initial value of the email property.</param>
 /// <param name="phone">Initial value of the phone property.</param>
 /// <param name="password">Initial value of the password property.</param>
 public static T_User CreateT_User(global::System.Int64 id, global::System.String name, global::System.String firstname, global::System.String email, global::System.String phone, global::System.String password)
 {
     T_User t_User = new T_User();
     t_User.id = id;
     t_User.name = name;
     t_User.firstname = firstname;
     t_User.email = email;
     t_User.phone = phone;
     t_User.password = password;
     return t_User;
 }