StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Create DescriptorExpand / Collapse
Author
Message
Posted 10/10/2006 3:30:28 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 08/23/2007 2:01:12 AM
Posts: 77, Visits: 804
When creating custom code, I have the option "Create Descriptor" selected. When I run the app, I get an error that says I may be missing a custom descriptor.

With this option selected, do I still need to do this? If so, what does this option do?

Post #3477
Posted 10/10/2006 3:39:16 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
That is a pending fix, actually... the BOMapper isn't creating the property descriptors, even when the Create Descriptor option is checked.  I'll have to debug it, because the code for the code generation is correctly testing on the property. 

However, there is a workaround for custom properties.

using MicroFour.StrataFrame.Business;
...

protected override FieldPropertyDescriptor[] GetCustomBindablePropertyDescriptors()
{
    return new FieldPropertyDescriptor[] { new ReflectionPropertyDescriptor("MyProperty", typeof(MyBusinessObject)) };
}

You have to do this whenever you create a custom property that is not part of the designer file if you want to be able to bind to the property.


www.bungie.net
Post #3479
Posted 10/10/2006 3:50:22 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
OK, it was creating the descriptor properly when the checkbox was checked, but it was not adding the descriptor to the PropertyDescriptors collection within the business object, so I corrected the problem and it will be in the next update.  But, like I said, that workaround will work until we get you another update.


www.bungie.net
Post #3480
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:41pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.