Example #1
0
 public IDbDataParameter ToDbDataParameter(DbClientProvider provider)
 {
     return provider.ConvertObjectParameterToDataParameter(this);
     //throw new NotImplementedException();
 }
Example #2
0
 /// <summary>
 /// 注册提供程序DbClientProvider
 /// </summary>
 /// <param name="providerName">提供程序名称</param>
 /// <param name="provider">DbClientProvider的实现</param>
 public static void Regist(string providerName, DbClientProvider provider)
 {
     _providers[providerName.Trim()] = provider;
 }