Re: [fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-31 Thread Michael
This is basic stuff with both database and ORM. Google is your friend. All I can suggest is, where is the Teacher reference in Classes, and bidirectional reference in Teacher? I don't know about auto mappings, as I usually do fluent mapping, but this is a personal design decision. Beyond that I

[fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-31 Thread Ivan Ruiz de Eguilaz Sosoaga
Thank you very much for your patient and your answer. I do not know If i have understud properly the concept of this: " Both sides of the now one to many need to be saved or updated first. " For instance, I have created a 2 new tables to do the tests. Teachers and Classes. They have onl

[fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-30 Thread Ivan Ruiz de Eguilaz Sosoaga
> > Thank you very much for your patient and your answer. > I do not know If i have understud properly the concept of this: " Both sides of the now one to many need to be saved or updated first. " For instance, I have created a 2 new tables to do the tests. Teachers and Classes. They have only

Re: [fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-30 Thread Michael
On August 30, 2016 7:42:29 AM EDT, Ivan Ruiz de Eguilaz Sosoaga wrote: >I have tried to simplify the data model. Creating by my hand the third >table, and avoiding to use many to many, so I have define a IList >element >and a mapping hasMany Remember it may look and feel naturally like a mod

Re: [fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-30 Thread Ivan Ruiz de Eguilaz Sosoaga
I have tried to simplify the data model. Creating by my hand the third table, and avoiding to use many to many, so I have define a IList element and a mapping hasMany The idea is to try the following: One Email has a list of Destiny_Person: public virtual IList Destiny_Persons {get; set; } an

Re: [fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-29 Thread Michael Powell
On Mon, Aug 29, 2016 at 7:56 AM, Ivan Ruiz de Eguilaz Sosoaga wrote: > I finally found the problem about why I was not able to generate a new table > from the dictionary. I did not have the override class as Public, so it did > not work. > > public class Email_Map : IAutoMappingOverride > {

[fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-29 Thread Ivan Ruiz de Eguilaz Sosoaga
I would like to add that when I get the data from the database afther inserting data by hand (As I said, the insert does not work for the diccionary). It works properly and it brings the email objects with the dictionary attirbutte fulfilled. So the problem only happens when I try to add data

[fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-29 Thread Ivan Ruiz de Eguilaz Sosoaga
I finally found the problem about why I was not able to generate a new table from the dictionary. I did not have the override class as Public, so it did not work. *public *class Email_Map : IAutoMappingOverride { public void Override(AutoMapping mapping) { .. N

[fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-25 Thread mwpowellhtx
On Wednesday, August 24, 2016 at 8:21:20 AM UTC-4, Ivan Ruiz de Eguilaz Sosoaga wrote: > > I have problems generating a new table by using HasManyToMany only When I > have a IDictonary as a source, for instance If I try it with an IList I do > not have any problem and I see how a new table is