From: Carlos G. Á. <car...@us...> - 2005-09-14 20:44:38
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/source/PostgreSql/Data/PostgreSqlClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28882 Modified Files: PgParameter.cs Added Files: PostgreSqlClientFactory.cs Log Message: no message --- NEW FILE: PostgreSqlClientFactory.cs --- /* * PgSqlClient - ADO.NET Data Provider for PostgreSQL 7.4+ * * The contents of this file are subject to the Initial * Developer's Public License Version 1.0 (the "License"); * you may not use this file except in compliance with the * License. * * Software distributed under the License is distributed on * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either * express or implied. See the License for the specific * language governing rights and limitations under the License. * * Copyright (c) 2003, 2005 Carlos Guzman Alvarez * All Rights Reserved. */ using System; using System.Data; using System.Data.Common; namespace PostgreSql.Data.PostgreSqlClient { public class PostgreSqlClientFactory : DbProviderFactory { #region · Static Fields · public static readonly PostgreSqlClientFactory Instance = new PostgreSqlClientFactory(); #endregion #region · Constructors · private PostgreSqlClientFactory() : base() { } #endregion #region · Properties · public override bool CanCreateDataSourceEnumerator { get { throw new Exception("The method or operation is not implemented."); } } #endregion #region · Methods · public override DbCommand CreateCommand() { return new PgCommand(); } public override DbCommandBuilder CreateCommandBuilder() { return new PgCommandBuilder(); } public override DbConnection CreateConnection() { return new PgConnection(); } public override DbConnectionStringBuilder CreateConnectionStringBuilder() { return new PgConnectionStringBuilder(); } public override DbDataAdapter CreateDataAdapter() { return new PgDataAdapter(); } public override DbParameter CreateParameter() { return new PgParameter(); } #endregion } } Index: PgParameter.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/source/PostgreSql/Data/PostgreSqlClient/PgParameter.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PgParameter.cs 11 Sep 2005 12:12:31 -0000 1.3 --- PgParameter.cs 14 Sep 2005 20:44:30 -0000 1.4 *************** *** 16,20 **** */ - using System; using System.Data; --- 16,19 ---- |