Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -925,13 +925,15 @@
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SessionHandle.netcore.Unix.cs">
<Link>Microsoft\Data\SqlClient\SessionHandle.netcore.Unix.cs</Link>
</Compile>
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlTypes\SqlFileStream.netcore.Unix.cs">
<Link>Microsoft\Data\SqlTypes\SqlFileStream.netcore.Unix.cs</Link>
</Compile>

<Compile Include="Microsoft\Data\Sql\SqlDataSourceEnumerator.Unix.cs" />
<Compile Include="Microsoft\Data\SqlClient\SNI\LocalDB.Unix.cs" />
<Compile Include="Microsoft\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.Unix.cs" />
<Compile Include="Microsoft\Data\SqlClient\SqlColumnEncryptionCngProvider.Unix.cs" />
<Compile Include="Microsoft\Data\SqlClient\SqlColumnEncryptionCspProvider.Unix.cs" />
<Compile Include="Microsoft\Data\SqlClient\SqlFileStream.Unsupported.cs" />
<Compile Include="Microsoft\Data\SqlClient\TdsParser.Unix.cs" />
<Compile Include="Microsoft\Data\SqlClient\TdsParserStateObjectFactory.Managed.cs" />
</ItemGroup>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if NET

using System;
using System.IO;

namespace Microsoft.Data.SqlTypes
{
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/SqlFileStream/*' />
public sealed class SqlFileStream : Stream
{
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/ctor1/*' />
public SqlFileStream(string path, byte[] transactionContext, FileAccess access)
{
throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/ctor2/*' />
public SqlFileStream(string path, byte[] transactionContext, FileAccess access, FileOptions options, Int64 allocationSize)
{
throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Name/*' />
public string Name
{
get => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/TransactionContext/*' />
public byte[] TransactionContext
{
get => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/CanRead/*' />
public override bool CanRead
{
get => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/CanSeek/*' />
public override bool CanSeek
{
get => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/CanWrite/*' />
public override bool CanWrite
{
get => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Length/*' />
public override long Length
{
get => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Position/*' />
public override long Position
{
get => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
set => throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Flush/*' />
public override void Flush() =>
throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Read/*' />
public override int Read(byte[] buffer, int offset, int count) =>
throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Seek/*' />
public override long Seek(long offset, System.IO.SeekOrigin origin) =>
throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/SetLength/*' />
public override void SetLength(long value) =>
throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);

/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlFileStream.xml' path='docs/members[@name="SqlFileStream"]/Write/*' />
public override void Write(byte[] buffer, int offset, int count) =>
throw new PlatformNotSupportedException(Strings.SqlFileStream_NotSupported);
}
}

#endif
Loading