Having trouble gettin the collection do what I want...
I want a dictionarylist of Account objects (defined in namespace xyz), indexed by the Name property of the Account object. The Name property derives from the string type.
My program's namespace is 'abc'.
Trying these arguments to the template:
ClassName : dctAccountsByNameCollection
Item Type: Account
ItemValueTYpe: False
KeyType: string
KeyValueType:true
PairType:Name_Account
ImportNamespaces : false
includeNamespace : true
itemNamespaces : xyz
Keynamespace : xyz
targetnamespace : abc
compiling this gives the error:
C:\My Documents\Visual Studio Projects\abc\dctAccountsByNameCollection.cs(482): The namespace 'abc' already contains a definition for 'IstringCollection'
I already have another dictionary class from the template, with a string key: dctContactsByNameCollection, which has an item type of 'Contacts'. Eventually, I'd like to have a number of dictionary objects that collect objects, and key them by a string property of the object itself.
Will every collection have to have its own namespace?
I tried to make the key type 'Name' - but that errors with the message "The type or namespace name 'Name' could not be found (are you missing a using directive or an assembly reference?)"
What should the arguments be, to give me lots of different dictionary collections using a string to key them?