From 1e47cb13081d1ac8d578eefddc61be69ef43a92f Mon Sep 17 00:00:00 2001 From: Daniel Cohen Gindi Date: Fri, 12 Sep 2014 15:51:08 +0300 Subject: [PATCH] Removed some deprecated functions --- dg.Sql.Connector.OleDb/OleDbConnector.cs | 2 +- dg.Sql/Connector/ConnectorBase.cs | 23 ++--------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/dg.Sql.Connector.OleDb/OleDbConnector.cs b/dg.Sql.Connector.OleDb/OleDbConnector.cs index 6534f109..3114772b 100644 --- a/dg.Sql.Connector.OleDb/OleDbConnector.cs +++ b/dg.Sql.Connector.OleDb/OleDbConnector.cs @@ -19,7 +19,7 @@ public override SqlServiceType TYPE public static OleDbConnection CreateSqlConnection(string connectionStringKey) { - return new OleDbConnection(GetWebsiteConnectionString(connectionStringKey)); + return new OleDbConnection(FindConnectionString(connectionStringKey)); } private OleDbConnection _Connection = null; diff --git a/dg.Sql/Connector/ConnectorBase.cs b/dg.Sql/Connector/ConnectorBase.cs index d11f7876..669d9ba9 100644 --- a/dg.Sql/Connector/ConnectorBase.cs +++ b/dg.Sql/Connector/ConnectorBase.cs @@ -356,19 +356,7 @@ public virtual string func_SECOND(string Date) #endregion #region Legacy, backwards compatibility - - [Obsolete("GetWebsiteConnectionString is deprecated, please use FindConnectionString instead.")] - public static String GetWebsiteConnectionString(string ConnectionStringKey) - { - return FindConnectionString(ConnectionStringKey); - } - - [Obsolete("GetWebsiteConnectionString is deprecated, please use FindConnectionString instead.")] - public static String GetWebsiteConnectionString() - { - return FindConnectionString(); - } - + [Obsolete("beginTransaction is deprecated, please use BeginTransaction instead.")] [CLSCompliant(false)] public bool beginTransaction() @@ -447,14 +435,7 @@ public string encloseFieldName(string FieldName) { return EncloseFieldName(FieldName); } - - [Obsolete("formatDate is deprecated, please use FormatDate instead.")] - [CLSCompliant(false)] - public string formatDate(DateTime DateTime) - { - return FormatDate(DateTime); - } - + #endregion } }