Metallic bonds have only a superficial resemblance to ionic bonds.
One very simple model describes metals as positive ions in a sea of electrons and while this rationalises the electrical conductivity of metals it does not explain why the metals generally have high melting points.
The force that holds the lattice together is not a simple electrostatic force as in an ideal ionic lattice. In most metals some of the bonding derives from some covalent bonding between metal atoms allied with delocalised bonds occupied by free electrons.
Different models that are used are
Band theory - considering the metal lattice as a fixed lattice of positive charges and then applying a similar approach as used for the hydrogen atom - a single charged nucleus with 1 electron. This model predicts bands of "orbitals" of similar energy which are delocalised.
Molecular orbital theory / valence bond theory which employ the same techniques as used by chemists for molecues. This also predicts delocalised orbitals.
Ionic and covalent bonding involve electrons. Ionic bonding involves the loss and gain of electrons, form ions. Covalent bonding involves the sharing of electrons.
These bonds tend to be ionic. However, all bonds are somewhere between purely ionic and purely covalent.
Aluminium typically displays metallic bonding due to its structure, where the outer electrons are delocalized across the metal lattice, leading to good electrical and thermal conductivity. However, in certain compounds such as aluminium oxide (Al2O3), it exhibits predominantly ionic bonding due to the transfer of electrons between aluminium and oxygen atoms.
Ionic bonding is based on electrostatic attraction between ions.
Covalent bonding involves the sharing of electrons. Ionic bonding involves the transfer of electrons.
Ionic bonding
Ionic
ionic
Ionic bonding forms compounds.
Bonding types do not directly link to melting points. Metals melt in a range - 38 0C - 3700 0C for tungsten. ionic compunds also melt in a range - 700 - 2800 0C Take you pick how you answer the question!
An ionic compound is formed based on the electrostatic attraction.
The bonding in magnesium metal is known as metallic bond. Metallic bonding is the electromagnetic interaction between delocalized electrons and metallic nuclei within metals. The electrons and the positive ions in the metal have a strong attractive force between them. Therefore metals often have high melting or boiling points. The principle is similar to that of ionic bonds. Magnesium can also do ionic and covalent bonding. e.g. MgO (Magnesium oxide), is an example for ionic bonding and MgCl (Magnesium Chloride), is an example for covalent bonding.