CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

BrokenRules DataBinding

Last post 06-25-2006, 8:11 AM by jokiz. 2 replies.
Sort Posts: Previous Next
  •  06-22-2006, 11:29 PM 2264

    • jokiz is not online. Last active: 08-29-2006, 4:59 AM jokiz
    • Not Ranked
    • Joined on 05-31-2006
    • Manila, Philippines
    • Posts 6
    • Points 90

    BrokenRules DataBinding

    i can see that RulesCollection has the ToString() to return string representation of the broken rules newline delimited.  In my opinion, it would be better to also have a public method which return all string representations of the broken rules (as StringCollection perhaps) for better flexibility in displaying them in UI.

    Although I can work around since CSLA already exposes the underlying rules with GetRulesCollection(), and one can databind it's Description with a repeater, i'd rather have it encapsulated (it's where csla is good at).  Parsing the newline delimited string to obtain a list/array is somewhat dirty to me...

    (x-a)(x-b)(x-c)...(x-z)
  •  06-24-2006, 11:08 PM 2282 in reply to 2264

    Re: BrokenRules DataBinding

    Good idea. In version 2.1 I am adding a ToArray() method to the BrokenRulesCollection class, so you can easily get a string array with the descriptions using that method.
    Rocky
  •  06-25-2006, 8:11 AM 2285 in reply to 2282

    • jokiz is not online. Last active: 08-29-2006, 4:59 AM jokiz
    • Not Ranked
    • Joined on 05-31-2006
    • Manila, Philippines
    • Posts 6
    • Points 90

    Re: BrokenRules DataBinding

    RockfordLhotka:
    Good idea. In version 2.1 I am adding a ToArray() method to the BrokenRulesCollection class, so you can easily get a string array with the descriptions using that method.

    cool, thanks!

    (x-a)(x-b)(x-c)...(x-z)
View as RSS news feed in XML

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems