I've created a very simple test for Entity Framework, following the Code first samples in the project's page at Microsoft's MSDN.
The Mono compatibility page says that Entity Framework is fully supported, so I installed the NuGET package. It worked flawlessly.
I created a very simple Person class, with its corresponding PersonContest.
public class Person {
public Person(string name, string email)
{
this.Name = name;
this.Email = email;
}
public string Name { get; set; }
public string Email { get; set; }
public override string ToString()
{
return string.Format( "{0}, {1}", Name, Email );
}
}
public class PersonsContext: DbContext {
public DbSet<Person> Persons { get; set; }
}
It compiles and runs. But when it is time to save the Person objects to the DbContext (PersonsContext), then it complains with a Sytem.NotImplementedException saying "MARS is not implemented".
Can I run Entity Framework on Linux with mono or not?