Make ItemInstanceAttribute optional #40

hisystems opened this Issue Mar 25, 2012 · 0 comments


None yet

1 participant


The ItemInstanceAttribute defines the class type that represents each item in the collection. However, if the collection inherits from Generic.DatabaseObjects then the class type is defined as part of T argument for the collection. Therefore, if the ItemInstanceAttribute is not specified then the T argument for the collection should be used instead.

@hisystems hisystems was assigned Mar 25, 2012
@hisystems hisystems added a commit that closed this issue Mar 28, 2012
@hisystems Specifying the ItemInstanceAttribute and overriding ItemInstance_ for…
… DatabaseObjects.Generic.DatabaseObjects* types is optional. Closes #40.

ItemInstanceAttribute does not need to be specified if a DatabaseObjects.Generic.DatabaseObjects collection is utilised because the T argument is instead used. Furthermore, overriding ItemInstance_ for non-DatabaseObjects.Generic.DatabaseObjects*UsingAttributes classes is no longer necessary because the T argument is used to determine the ItemInstance type to create.
@hisystems hisystems closed this in 3027a5a Mar 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment