Skip to content

Commit

Permalink
Moved Npgsql cs files to project root
Browse files Browse the repository at this point in the history
Was causing double Npgsql.Npgsql. namespace nonsense.

Leaving NpgsqlTypes inside its own folder/namespace for now,
to maintain backwards compatibility.
  • Loading branch information
roji committed Sep 15, 2014
1 parent 853d69c commit a7d29a7
Show file tree
Hide file tree
Showing 64 changed files with 80 additions and 82 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
122 changes: 61 additions & 61 deletions Npgsql/Npgsql.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,95 +117,95 @@
<Compile Include="NpgsqlTypes\NpgsqlTypeMappings.cs" />
<Compile Include="NpgsqlTypes\NpgsqlTypes.cs" />
<Compile Include="NpgsqlTypes\NpgsqlTypesHelper.cs" />
<Compile Include="Npgsql\L10N\L10N.Designer.cs">
<Compile Include="Localization\L10N.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>L10N.resx</DependentUpon>
</Compile>
<Compile Include="Npgsql\NpgsqlQuery.cs" />
<Compile Include="NpgsqlQuery.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Npgsql\Cache.cs" />
<Compile Include="Npgsql\BackendEncoding.cs" />
<Compile Include="Npgsql\ASCIIBytes.cs" />
<Compile Include="Npgsql\HashAlgorithm.cs" />
<Compile Include="Npgsql\MD5.cs" />
<Compile Include="Npgsql\MD5CryptoServiceProvider.cs" />
<Compile Include="Npgsql\NpgsqlAsciiRow.cs" />
<Compile Include="Npgsql\NpgsqlBackEndKeyData.cs" />
<Compile Include="Npgsql\NpgsqlBind.cs" />
<Compile Include="Npgsql\NpgsqlCancelRequest.cs" />
<Compile Include="Npgsql\NpgsqlCommand.cs">
<Compile Include="Cache.cs" />
<Compile Include="BackendEncoding.cs" />
<Compile Include="ASCIIBytes.cs" />
<Compile Include="HashAlgorithm.cs" />
<Compile Include="MD5.cs" />
<Compile Include="MD5CryptoServiceProvider.cs" />
<Compile Include="NpgsqlAsciiRow.cs" />
<Compile Include="NpgsqlBackEndKeyData.cs" />
<Compile Include="NpgsqlBind.cs" />
<Compile Include="NpgsqlCancelRequest.cs" />
<Compile Include="NpgsqlCommand.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Npgsql\NpgsqlCommand.PrepareExecute.cs">
<Compile Include="NpgsqlCommand.PrepareExecute.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Npgsql\NpgsqlCommand.Rewrite.cs">
<Compile Include="NpgsqlCommand.Rewrite.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Npgsql\NpgsqlCommandBuilder.cs">
<Compile Include="NpgsqlCommandBuilder.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Npgsql\NpgsqlConnection.cs">
<Compile Include="NpgsqlConnection.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Npgsql\NpgsqlConnectionStringBuilder.cs" />
<Compile Include="Npgsql\NpgsqlConnector.cs" />
<Compile Include="Npgsql\NpgsqlConnectorPool.cs" />
<Compile Include="Npgsql\NpgsqlCopyFormat.cs" />
<Compile Include="Npgsql\NpgsqlCopyIn.cs" />
<Compile Include="Npgsql\NpgsqlCopyInStream.cs" />
<Compile Include="Npgsql\NpgsqlCopyOut.cs" />
<Compile Include="Npgsql\NpgsqlCopyOutStream.cs" />
<Compile Include="Npgsql\NpgsqlCopySerializer.cs" />
<Compile Include="Npgsql\NpgsqlDataAdapter.cs">
<Compile Include="NpgsqlConnectionStringBuilder.cs" />
<Compile Include="NpgsqlConnector.cs" />
<Compile Include="NpgsqlConnectorPool.cs" />
<Compile Include="NpgsqlCopyFormat.cs" />
<Compile Include="NpgsqlCopyIn.cs" />
<Compile Include="NpgsqlCopyInStream.cs" />
<Compile Include="NpgsqlCopyOut.cs" />
<Compile Include="NpgsqlCopyOutStream.cs" />
<Compile Include="NpgsqlCopySerializer.cs" />
<Compile Include="NpgsqlDataAdapter.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Npgsql\NpgsqlDataReader.cs" />
<Compile Include="Npgsql\NpgsqlDescribe.cs" />
<Compile Include="Npgsql\NpgsqlError.cs" />
<Compile Include="Npgsql\NpgsqlException.cs" />
<Compile Include="Npgsql\NpgsqlExecute.cs" />
<Compile Include="Npgsql\NpgsqlFactory.cs" />
<Compile Include="Npgsql\NpgsqlFlush.cs" />
<Compile Include="Npgsql\NpgsqlMediator.cs" />
<Compile Include="Npgsql\NpgsqlMessages.cs" />
<Compile Include="Npgsql\NpgsqlNotificationEventArgs.cs" />
<Compile Include="Npgsql\NpgsqlParameter.cs" />
<Compile Include="Npgsql\NpgsqlParameterCollection.cs" />
<Compile Include="Npgsql\NpgsqlParameterStatus.cs" />
<Compile Include="Npgsql\NpgsqlParse.cs" />
<Compile Include="Npgsql\NpgsqlPasswordPacket.cs" />
<Compile Include="Npgsql\NpgsqlPromotableSinglePhaseNotification.cs" />
<Compile Include="Npgsql\NpgsqlResourceManager.cs" />
<Compile Include="Npgsql\NpgsqlRow.cs" />
<Compile Include="Npgsql\NpgsqlRowDescription.cs" />
<Compile Include="Npgsql\NpgsqlSchema.cs" />
<Compile Include="Npgsql\NpgsqlStartupPacket.cs" />
<Compile Include="Npgsql\NpgsqlSync.cs" />
<Compile Include="Npgsql\NpgsqlTransaction.cs" />
<Compile Include="Npgsql\NpgsqlTransactionCallbacks.cs" />
<Compile Include="Npgsql\PGUtil.cs" />
<Compile Include="Npgsql\SSPIHandler.cs" />
<Compile Include="NpgsqlDataReader.cs" />
<Compile Include="NpgsqlDescribe.cs" />
<Compile Include="NpgsqlError.cs" />
<Compile Include="NpgsqlException.cs" />
<Compile Include="NpgsqlExecute.cs" />
<Compile Include="NpgsqlFactory.cs" />
<Compile Include="NpgsqlFlush.cs" />
<Compile Include="NpgsqlMediator.cs" />
<Compile Include="NpgsqlMessages.cs" />
<Compile Include="NpgsqlNotificationEventArgs.cs" />
<Compile Include="NpgsqlParameter.cs" />
<Compile Include="NpgsqlParameterCollection.cs" />
<Compile Include="NpgsqlParameterStatus.cs" />
<Compile Include="NpgsqlParse.cs" />
<Compile Include="NpgsqlPasswordPacket.cs" />
<Compile Include="NpgsqlPromotableSinglePhaseNotification.cs" />
<Compile Include="NpgsqlResourceManager.cs" />
<Compile Include="NpgsqlRow.cs" />
<Compile Include="NpgsqlRowDescription.cs" />
<Compile Include="NpgsqlSchema.cs" />
<Compile Include="NpgsqlStartupPacket.cs" />
<Compile Include="NpgsqlSync.cs" />
<Compile Include="NpgsqlTransaction.cs" />
<Compile Include="NpgsqlTransactionCallbacks.cs" />
<Compile Include="PGUtil.cs" />
<Compile Include="SSPIHandler.cs" />
<Compile Include="..\CommonAssemblyInfo.cs">
<Link>Properties\CommonAssemblyInfo.cs</Link>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Npgsql\L10N\L10N.de.resx" />
<EmbeddedResource Include="Npgsql\L10N\L10N.es.resx" />
<EmbeddedResource Include="Npgsql\L10N\L10N.fi.resx" />
<EmbeddedResource Include="Npgsql\L10N\L10N.fr.resx" />
<EmbeddedResource Include="Npgsql\L10N\L10N.ja.resx" />
<EmbeddedResource Include="Npgsql\L10N\L10N.resx">
<EmbeddedResource Include="Localization\L10N.de.resx" />
<EmbeddedResource Include="Localization\L10N.es.resx" />
<EmbeddedResource Include="Localization\L10N.fi.resx" />
<EmbeddedResource Include="Localization\L10N.fr.resx" />
<EmbeddedResource Include="Localization\L10N.ja.resx" />
<EmbeddedResource Include="Localization\L10N.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>L10N.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Npgsql\L10N\L10N.zh-CN.resx" />
<EmbeddedResource Include="Localization\L10N.zh-CN.resx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Npgsql\NpgsqlMetaData.xml" />
<EmbeddedResource Include="NpgsqlMetaData.xml" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
using System.Resources;
using System.Text;
using System.Text.RegularExpressions;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NpgsqlTypes;

namespace Npgsql
Expand Down
2 changes: 1 addition & 1 deletion Npgsql/Npgsql/NpgsqlCommand.cs → Npgsql/NpgsqlCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
using System.Text;
using System.Text.RegularExpressions;
using Common.Logging;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NpgsqlTypes;

#if WITHDESIGN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
using System.Linq;
using System.Reflection;
using System.Resources;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NpgsqlTypes;

namespace Npgsql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
using System.Transactions;
using Common.Logging;
using Mono.Security.Protocol.Tls;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using IsolationLevel = System.Data.IsolationLevel;

#if WITHDESIGN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,16 @@
using System.Runtime.Versioning;
using System.Security.Principal;
using System.Text;
using Npgsql.Localization;

// Keep the xml comment warning quiet for this file.
using Npgsql.Npgsql.L10N;

#pragma warning disable 1591

namespace Npgsql
{
public sealed class NpgsqlConnectionStringBuilder : DbConnectionStringBuilder
{
static readonly ResourceManager resman = new ResourceManager("Npgsql.Npgsql.L10N.L10N", typeof(L10N).Assembly);
static readonly ResourceManager resman = new ResourceManager("Npgsql.Localization.L10N", typeof(L10N).Assembly);

[AttributeUsage(AttributeTargets.Property)]
private sealed class NpgsqlConnectionStringKeywordAttribute : Attribute {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
using System.Threading;
using Common.Logging;
using Mono.Security.Protocol.Tls;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NpgsqlTypes;
using System.Text;
using SecurityProtocolType = Mono.Security.Protocol.Tls.SecurityProtocolType;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Data.Common;
using System.Reflection;
using System.Resources;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NpgsqlTypes;

#if WITHDESIGN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
using System.Reflection;
using System.Resources;
using Common.Logging;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NpgsqlTypes;

#if WITHDESIGN
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Npgsql/Npgsql/NpgsqlRow.cs → Npgsql/NpgsqlRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
using System.Reflection;
using System.Resources;
using System.Text;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NpgsqlTypes;

namespace Npgsql
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions Npgsql/Npgsql/NpgsqlSchema.cs → Npgsql/NpgsqlSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ internal static DataTable GetMetaDataCollections()
{
DataSet ds = new DataSet();
ds.Locale = CultureInfo.InvariantCulture;
using (Stream xmlStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Npgsql.Npgsql.NpgsqlMetaData.xml"))
using (Stream xmlStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Npgsql.NpgsqlMetaData.xml"))
{
ds.ReadXml(xmlStream);
}
Expand All @@ -61,7 +61,7 @@ internal static DataTable GetRestrictions()
{
DataSet ds = new DataSet();
ds.Locale = CultureInfo.InvariantCulture;
using (Stream xmlStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Npgsql.Npgsql.NpgsqlMetaData.xml"))
using (Stream xmlStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Npgsql.NpgsqlMetaData.xml"))
{
ds.ReadXml(xmlStream);
}
Expand Down Expand Up @@ -495,7 +495,7 @@ inner join (
internal static DataTable GetDataSourceInformation()
{
DataSet ds = new DataSet();
using (Stream xmlStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Npgsql.Npgsql.NpgsqlMetaData.xml"))
using (Stream xmlStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Npgsql.NpgsqlMetaData.xml"))
{
ds.ReadXml(xmlStream);
}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
using System.Text;
using System.Threading;
using Common.Logging;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;

namespace Npgsql
{
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions Npgsql/Npgsql/PGUtil.cs → Npgsql/PGUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
using System.Resources;
using System.Text;
using Common.Logging;
using Npgsql.Localization;

// Keep the xml comment warning quit for this file.
using Npgsql.Npgsql.L10N;

#pragma warning disable 1591

namespace Npgsql
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/CommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
using System.Linq;
using System.Threading.Tasks;
using Npgsql;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NUnit.Framework;
using System.Data;
using System.Globalization;
Expand Down
2 changes: 1 addition & 1 deletion tests/ConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
using Npgsql;
using System.Data;
using System.Resources;
using Npgsql.Npgsql.L10N;
using Npgsql.Localization;
using NUnit.Framework;
using System.Collections.Generic;
using NpgsqlTypes;
Expand Down

0 comments on commit a7d29a7

Please sign in to comment.