annotate Source/Configuration/DataProviderElementCollection.cs @ 5:f7d63a092920
Исправлено условие Where в тех случаях, когда репозитарий не является генериком
author |
cin |
date |
Tue, 10 Mar 2015 16:02:11 +0300 |
parents |
f990fcb411a9 |
children |
|
rev |
line source |
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 } |