NaC or Na2C2 is sodium carbide and it's definitely ionic compound.
Several carbides are assumed to be salts of the acetylide anion (also called percarbide), which has a triple bond between the two carbon atoms. Alkali metals, alkaline earth metals, and lanthanoid metals form acetylides, e.g., sodium carbide , calcium carbide , and . Lanthanoids also form carbides (sesquicarbides, see below) with formula . Metals from group 11 also tend to form acetylides, such as copper (I) acetylide and silver acetylide. Carbides of the actinide elements, which have stoichiometry and , are also described as salt-like derivatives of .
The C-C triple bond length ranges from in (similar to ethyne), to in and in . The bonding in has been described in terms of with the extra electron delocalised into the antibonding orbital on , explaining the metallic conduction.
http://en.wikipedia.org/wiki/Carbide