This can be easily solved if it would be possible to add two
attributes to PropertyMap. But PropertyMap.SetAttribute() returns
void, so it cannot be chained further.
After a very quick look at the code, one of the solutions will be to
modify IHasAttribute's signature to
public interface IHasAttributes
{
IHasAttributes SetAttribute(string name, string value);
}
Any ideas?
James Gregory
unread,
Aug 26, 2008, 7:29:12 AM8/26/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fluent-n...@googlegroups.com
You should be able to get your insert="false" by using AsReadOnly. The generated attribute isn't supported yet, so you'll have to continue to use the SetAttribute for that.
Regarding the void for SetAttribute, that is a bit of a pain. it won't be as simple as just returning IHasAttributes, because that won't let you access the other property mappings. We should be able to solve this through a bit of generic jiggery-pokery.
Valeriu Caraulean
unread,
Aug 26, 2008, 8:40:13 AM8/26/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message