43 lines
1003 B
C#
43 lines
1003 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Configuration;
|
|
|
|
namespace WMS.IData
|
|
{
|
|
/// <summary>
|
|
/// 返回一个数据层的一个提供者
|
|
/// </summary>
|
|
public class DataProviderSection : ConfigurationSection
|
|
{
|
|
/// <summary>
|
|
/// 返回数据提供者节
|
|
/// </summary>
|
|
[ConfigurationProperty("providers")]
|
|
public ProviderSettingsCollection Providers
|
|
{
|
|
get
|
|
{
|
|
return (ProviderSettingsCollection)base["providers"];
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取默认的数据提供者
|
|
/// </summary>
|
|
[ConfigurationProperty("defaultProvider")]
|
|
public string DefaultProvider
|
|
{
|
|
get
|
|
{
|
|
return (string)base["defaultProvider"];
|
|
}
|
|
set
|
|
{
|
|
base["defaultProvider"] = value;
|
|
}
|
|
}
|
|
}
|
|
}
|