System.Data.Common.DbDataReader.GetChars(int, long, char[], int, int)

Here are the examples of the csharp api class System.Data.Common.DbDataReader.GetChars(int, long, char[], int, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

14 Examples 7

1. Example

Project: EDDiscovery
Source File: SQLiteCommandED.cs
View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return InnerReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }

2. Example

Project: Glimpse
Source File: GlimpseDbDataReader.cs
View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return InnerDataReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

3. Example

View license
public override long GetChars(int i, long fieldOffset, char[] buffer, int bufferOffset, int length)
            {
                return reader.GetChars(i, fieldOffset, buffer, bufferOffset, length);
            }

4. Example

Project: ALinq
Source File: AccessDbConnection.cs
View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

5. Example

Project: ALinq
Source File: DataReader.cs
View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

6. Example

Project: ALinq
Source File: Connection.cs
View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

7. Example

Project: ALinq
Source File: Connection.cs
View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

8. Example

Project: nhibernate-core
Source File: ResultSetWrapper.cs
View license
public override long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length)
		{
			return rs.GetChars(i, fieldoffset, buffer, bufferoffset, length);
		}

9. Example

View license
public override long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length)
		{
			return reader.GetChars(i, fieldoffset, buffer, bufferoffset, length);
		}

10. Example

View license
public override long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length)
		{
			return _reader.GetChars(i, fieldoffset, buffer, bufferoffset, length);
		}

11. Example

Project: NServiceKit
Source File: ProfiledDbDataReader.cs
View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return _reader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

12. Example

View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return wrappedReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

13. Example

View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            return _resultsReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
        }

14. Example

View license
public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)
        {
            InduceErrorIfClosed();
            WaitForReaderOrThrow();

            if (this.IsPseudoColumnReference(ordinal))
            {
                // It is a reference to our ShardName pseudo column.
                //
                if (dataOffset < 0)
                {
                    return 0;
                }
                char[] source = GetString(ordinal).ToCharArray();
                if (null == buffer)
                {
                    buffer = new char[source.Length];
                    source.CopyTo(buffer, 0);
                    return buffer.Length;
                }
                else
                {
                    long charsCopied = 0;
                    long sourcePos = dataOffset;
                    int bufferPos = bufferOffset;
                    while ((sourcePos < source.Length) && (bufferPos < buffer.Length) && (charsCopied < length))
                    {
                        buffer[bufferPos] = source[sourcePos];
                        bufferPos++;
                        sourcePos++;
                        charsCopied++;
                    }
                    return charsCopied;
                }
            }
            else
            {
                return this.GetCurrentDataReader().GetChars(ordinal, dataOffset, buffer, bufferOffset, length);
            }
        }