Skip to content

Commit

Permalink
Removed some deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Sep 12, 2014
1 parent 8ffa9f6 commit 1e47cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dg.Sql.Connector.OleDb/OleDbConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
23 changes: 2 additions & 21 deletions dg.Sql/Connector/ConnectorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
}
}

0 comments on commit 1e47cb1

Please sign in to comment.