I have the following schema in my database:
Which I have mapped to LinqToSQL classes using EntityDeveloper as follows:
The association between User and NewsletterOption is a one-to-one association, with the following properties:
I cannot now build this solution as doing so produces the following set of errors:
If I specify it as a one-to-many association, it compiles fine, but this really is a One-To-One association, and don't want to have to fudge it as a OneToMany.1. 'Models.NewsletterOption' does not contain a definition for 'Remove' and no extension method 'Remove' accepting a first argument of type 'Models.NewsletterOption' could be found (are you missing a using directive or an assembly reference?)
2. 'Models.NewsletterOption' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'Models.NewsletterOption' could be found (are you missing a using directive or an assembly reference?)
3. 'Models.User' does not contain a definition for 'Remove' and no extension method 'Remove' accepting a first argument of type 'Models.User' could be found (are you missing a using directive or an assembly reference?)
4. 'Models.User' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'Models.User' could be found (are you missing a using directive or an assembly reference?)
Any ideas where I'm going wrong?
Thanks
Jon