Vote count:
0
Is it possible to do fluent mapping on a collection property of primitive type in Entity Framework 6.1 Code First?
I know that this was not possible with earlier versions.
For example something like:
public class Foo
{
public int Id;
public virtual List<string> Bar;
}
with fluent mapping:
modelBuilder.Entity<Foo>()
.HasMany<string>(f => f.Bar);
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire