Issue with creating new context.

Issue #2 resolved
Former user created an issue

I found maybe a bug maybe its just way you designed it. But when creating new context I use resharper and use underscores for private variables example below.

    private readonly Collection<DropdownSelectItemContext> _items = new Collection<DropdownSelectItemContext>();

    private readonly Property<DropdownSelectItemContext> _selectedItemProperty =
        new Property<DropdownSelectItemContext>();

When having thos underscores the context wont work properly and wont pass data on. Soon as I remove the underscore it works as intended.

Comments (4)

  1. Christian Oeing repo owner

    Hi!

    Thanks for the report!

    It's indeed as designed, we are using a naming convention (http://slashgames.org:8090/display/DBFU/Data+Context%2C+Property+and+Collection#DataContext,PropertyandCollection-NamingConventions) to find the data property for a given name.

    I made a note, so I may add a setting where one could specify which naming convention to use in a project and add support for the convention "_" + name + "Property"

    If you are using ReSharper, you might consider using the code snippets (http://slashgames.org:8090/display/DBFU/Data+Context%2C+Property+and+Collection) for a data property and collection. They make creation of a data property a lot easier and less error-prone :)

    Cheers Christian

  2. Christian Oeing repo owner

    I added a new settings class where one can specify how the format of the data properties looks like.

    Possible are right now: - Data Name with first letter uppercase or lowercase - Optional appended underscore

    This should make sure that the data properties will follow the naming conventions of the project it is used

  3. Log in to comment