/// <summary> /// Create a new Admin object. /// </summary> /// <param name="adminID">Initial value of the AdminID property.</param> /// <param name="userName">Initial value of the UserName property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="isAdmin">Initial value of the IsAdmin property.</param> /// <param name="fullName">Initial value of the FullName property.</param> /// <param name="yM">Initial value of the YM property.</param> /// <param name="phone">Initial value of the Phone property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="status">Initial value of the Status property.</param> public static Admin CreateAdmin(global::System.Int32 adminID, global::System.String userName, global::System.String password, global::System.Boolean isAdmin, global::System.String fullName, global::System.String yM, global::System.String phone, global::System.String email, global::System.DateTime createDate, global::System.String description, global::System.Int32 status) { Admin admin = new Admin(); admin.AdminID = adminID; admin.UserName = userName; admin.Password = password; admin.IsAdmin = isAdmin; admin.FullName = fullName; admin.YM = yM; admin.Phone = phone; admin.Email = email; admin.CreateDate = createDate; admin.Description = description; admin.Status = status; return admin; }
/// <summary> /// Deprecated Method for adding a new object to the Admins EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAdmins(Admin admin) { base.AddObject("Admins", admin); }