using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace yplaylist.Models
{
[MatadataType(typeof(Song_Validation))]
public partial class Song
{
}
public class Song_Validation
{
}
}
MetadataType is highlighted saying that it could not be found missing a using directive or assembly reference? what am I missing?
I’m not sure if you copied your code directly into your question, but you have a spelling error in your code:
It should be:
You spelled it as
MatadataType.