It\'s possible I shouldn\'t even be attempting this in the first place, but here\'s what I have so far:
public List AuthorIDs
{
get
{
There is actually a way of doing that:
public List AuthorIDs
{
get
{
var l = new List();
using (var context = new GarbageEntities())
{
foreach (var author in context.Authors.Where(a => a.Books.Any(b => b.BookID == this.BookID)).ToList())
{
l.Add(author.AuthorID);
}
}
return l;
}
set{
this.SetPropertyValue(page => page.AuthorIDs, value);
}
}