I think it depends what the magnesium is built into.
Magnesium oxide is ionic.
In magnesium carbonate the magnesium cation bonds ioniccally with the carbonate anion. The carbon and oxygen in the carbonate anion bond covalently. Mg^(2+) + CO3^(2-_ = MgCO3(s) CO3^(2-) = O=C-(O^(-))2 The covalent bonding arrangement. Two oxygens singly covalently bond to the carbon , each have a charge of '-1' , which resonates between the two oxygen ions giving for a charge of '-2' . The third oxygen is doubly bonded to the carbon and has no charge. This satisfies the valency of carbon at '4' and also satisfies the valency of oxygen at '2'.
Magnesium hydroxide is an ionic compound, as it is composed of a metal cation (magnesium) and a hydroxide anion (OH-). Ionic compounds typically form when a metal reacts with a non-metal to transfer electrons.
Magnesium and iodine react to form the ionic compound magnesium iodide - MgI2.
Ionic
Magnesium chloride is a compound, not a bond of any kind. The compound is ionic.
Magnesium oxide, or MgO, is an ionic compound: the result of a metal reacting with a non-metal.
MgCO3 is Magnesium Carbonate.
Ionic
ionic
Magnesium and iodine will form an ionic bond. Magnesium, being a metal, will donate electrons to iodine, a nonmetal, resulting in the formation of magnesium iodide, which is an ionic compound.
They are NOT, Mg (metal) and O2 (bi-atomic gas) are elements and not compounds,BUTMagnesium oxide ( Mg=O ) is an ionic compound