it got the wrong columns names (compared to what the llblgen project specified) (should have been no underscores, ie UserId and MeetingId)
so, it did try to write it.
This is the only mapping is created:
protected virtual void MapUser(EntityTypeConfiguration<User> config)
{
config.ToTable("User");
config.HasKey(t => t.Id);
config.Property(t => t.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
config.HasRequired(t => t.ExternalUser).WithOptional(t => t.User);
config.HasMany(t => t.MeetingsToAttend).WithMany(t => t.Attendees)
.Map(m =>
{
m.ToTable("MeetingAttendee");
m.MapLeftKey();
m.MapRightKey();
});
}
and the entity itself:
public partial class MeetingAttendee: CommonEntityBase
{
public MeetingAttendee() : base()
{
}
public System.Int32 MeetingId{ get; set;}
public System.Guid UserId { get; set;}
/// <summary>Represents the navigator which is mapped onto the association 'Events.MeetingAttendee.User - BasicEntities.User.Meetings(m:1)'</summary>
public virtual User User { get; set;}
/// <summary>Represents the navigator which is mapped onto the association 'Events.Meeting.Recipients - Events.MeetingAttendee.QDocDispatchEvent (1:n)'</summary>
public virtual Meeting Meeting { get; set;}
}
Note I have renamed the entities to keep it more obvious.
Did it just get the wrong feild names?