In my C# project, I get an error when EF attempts to create my database The error occurs when I call
Database.SetInitializer(new CreateDatabaseIfNotExists
Quite literally, the problem is what is described. Dependancies is a field, not a property. Just define it as:
Dependancies
public virtual ICollection<TemplateTaskDependancy> Dependancies { get; set; }
And it should solve your problem.