0
|
1 using System;
|
|
2 using System.Configuration;
|
|
3
|
|
4 namespace BLToolkit.Configuration
|
|
5 {
|
|
6 [ConfigurationCollection(typeof(DataProviderElement))]
|
|
7 internal class DataProviderElementCollection : ElementCollectionBase<DataProviderElement>
|
|
8 {
|
|
9 protected override object GetElementKey(DataProviderElement element)
|
|
10 {
|
|
11 // element.Name is optional and may be omitted.
|
|
12 // element.TypeName is required, but is not unique.
|
|
13 //
|
|
14 return string.Concat(element.Name, "/", element.TypeName);
|
|
15 }
|
|
16 }
|
|
17 } |