In my code I have this:
var wordForm = new WordForm()
{
WordId = word.WordId,
Definition = webWordForm.definition,
SourceId = webWordForm.sourceId,
StatusId = EStatus.Download,
PosId = WordToPosId(webWordForm.partOfSpeech)
};
I declared the Enum:
public enum EStatus {
NotSet = 0,
New = 1,
Download = 2,
Edited = 3
}
and the statusID:
public int StatusId { get; set; } // StatusId
Do I need to cast this to an int and if so how do I do that?