When trying to compile my .Dll I have managed to get all my references and errors figured out except for these two(which i have multiple of).
"The type or namespace name 'Display' could not be found(are you missing a using directive or an assembly reference?)"
"The type or namespace name 'DisplayAttribute' could not be found(are you missing a using directive or an assembly reference?)"
I am using System.ComponentModel and System.ComponentModel.DataAnnotations. Forgive me as im very fuzzy with all of this and I am just making a minor change to this project. I do not understand what reference I am missing to cause these errors, im also sure the problem is caused by my inexperience. Any help is appreciated, Thank you.
A small portion of the code:
using PatientTracker.Entities.Validation;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Xml.Serialization;
namespace PatientTracker.Entities
{
[Serializable]
public abstract class EntityBaseCore : IEntity, INotifyPropertyChanged, IDataErrorInfo, IDeserializationCallback, INotifyPropertyChanging
{
[Display(AutoGenerateField = false)]
[NonSerialized]
protected bool bindingIsNew = true;
[Display(AutoGenerateField = false)]
[NonSerialized]
private bool isEntityTracked;
[Display(AutoGenerateField = false)]
[NonSerialized]
private bool suppressEntityEvents;
private string entityHashCode;
[NonSerialized]
private object tag;
[NonSerialized]
private ValidationRules _validationRules;
[Display(AutoGenerateField = false)]
public abstract string TableName { get; }
[Display(AutoGenerateField = false)]
public abstract string[] TableColumns { get; }
[Browsable(false)]
[Display(AutoGenerateField = false)]
public virtual bool IsDeleted
{
get
{
return this.EntityState == EntityState.Deleted;
}
}