System.Data.Common.DbDataReader.GetBoolean(int)

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

23 Examples 7

1. Example

Project: EDDiscovery
Source File: SQLiteCommandED.cs
View license
public override bool GetBoolean(int ordinal) { return InnerReader.GetBoolean(ordinal); }

2. Example

Project: Glimpse
Source File: GlimpseDbDataReader.cs
View license
public override bool GetBoolean(int ordinal)
        {
            return InnerDataReader.GetBoolean(ordinal);
        }

3. Example

View license
public override bool GetBoolean(int i)
            {
                return reader.GetBoolean(i);
            }

4. Example

Project: nhibernate-core
Source File: ResultSetWrapper.cs
View license
public override bool GetBoolean(int i)
		{
			return rs.GetBoolean(i);
		}

5. Example

View license
public override bool GetBoolean(int i)
		{
			return reader.GetBoolean(i);
		}

6. Example

View license
public override bool GetBoolean(int i)
		{
			return _reader.GetBoolean(i);
		}

7. Example

Project: NServiceKit
Source File: ProfiledDbDataReader.cs
View license
public override bool GetBoolean(int ordinal)
        {
            return _reader.GetBoolean(ordinal);
        }

8. Example

View license
public override bool GetBoolean(int ordinal)
        {
            return wrappedReader.GetBoolean(ordinal);
        }

9. Example

View license
public override bool GetBoolean(int ordinal)
        {
            return _resultsReader.GetBoolean(ordinal);
        }

10. Example

View license
public override bool GetBoolean(int ordinal)
        {
            return (bool)this.wrappedDataReader.GetBoolean(ordinal);
        }

11. Example

Project: EasyLOB
Source File: DbDataReaderExtensions.cs
View license
public static bool ToBoolean(this DbDataReader reader, int index)
        {
            return reader.IsDBNull(index) ? LibraryDefaults.Default_Boolean : reader.GetBoolean(index);
        }

12. Example

Project: EasyLOB
Source File: DbDataReaderExtensions.cs
View license
public static bool? ToBooleanNullable(this DbDataReader reader, int index)
        {
            return reader.IsDBNull(index) ? (bool?)null : reader.GetBoolean(index);
        }

13. Example

Project: marten
Source File: AnyQueryHandler.cs
View license
public bool Handle(DbDataReader reader, IIdentityMap map, QueryStatistics stats)
        {
            if (!reader.Read())
                return false;

            return !reader.IsDBNull(0) && reader.GetBoolean(0);
        }

14. Example

View license
private MembershipUser GetUserFromReader(DbDataReader reader)
        {
            object providerU/n ..... /n //View Source file for more details /n }

15. Example

View license
protected override IPersistentRepresentation ReadEvent(DbDataReader reader)
        {
            var persistenceId = reader.GetString(PersistenceIdIndex);
            var sequenceNr = reader.GetInt64(SequenceNrIndex);
            //var timestamp = reader.GetDateTime(TimestampIndex);
            var isDeleted = reader.GetBoolean(IsDeletedIndex);
            var manifest = reader.GetString(ManifestIndex);
            var raw = reader[PayloadIndex];

            int? serializerId = null;
            Type type = null;
            if (reader.IsDBNull(SerializerIdIndex))
            {
                type = Type.GetType(manifest, true);
            }
            else
            {
                serializerId = reader.GetInt32(SerializerIdIndex);
            }

            var deserialized = _deserialize(type, raw, manifest, serializerId);

            return new Persistent(deserialized, sequenceNr, persistenceId, manifest, isDeleted, ActorRefs.NoSender, null);
        }

16. Example

Project: MimeKit
Source File: X509CertificateDatabase.cs
View license
X509CrlRecord LoadCrlRecord (DbDataReader reader, X509CrlParser parser, ref byte[] buffer)
		{
			var record = new X509CrlRecord ();

			for (int i = 0; i < reader.FieldCount; i++) {
				switch (reader.GetName (i).ToUpperInvariant ()) {
				case "CRL":
					record.Crl = DecodeX509Crl (reader, parser, i, ref buffer);
					break;
				case "THISUPDATE":
					record.ThisUpdate = DateTime.SpecifyKind (reader.GetDateTime (i), DateTimeKind.Utc);
					break;
				case "NEXTUPDATE":
					record.NextUpdate = DateTime.SpecifyKind (reader.GetDateTime (i), DateTimeKind.Utc);
					break;
				case "DELTA":
					record.IsDelta = reader.GetBoolean (i);
					break;
				case "ID":
					record.Id = reader.GetInt32 (i);
					break;
				}
			}

			return record;
		}

17. Example

Project: framework
Source File: FieldReader.cs
View license
public bool GetBoolean(int ordinal)
        {
            LastOrdinal = ordinal;
            switch (typeCodes[ordinal])
            {
                case TypeCode.Boolean:
                    return reader.GetBoolean(ordinal);
                case TypeCode.Byte:
                    return reader.GetByte(ordinal) != 0;
                case TypeCode.Int16:
                    return reader.GetInt16(ordinal) != 0;
                case TypeCode.Int32:
                    return reader.GetInt32(ordinal) != 0;
                case TypeCode.Int64:
                    return reader.GetInt64(ordinal) != 0;
                case TypeCode.String:
                    return bool.Parse(reader.GetString(ordinal));
                default:
                    return ReflectionTools.ChangeType<bool>(reader.GetValue(ordinal));
            }
        }

18. Example

Project: MimeKit
Source File: X509CertificateDatabase.cs
View license
X509CertificateRecord LoadCertificateRecord (DbDataReader reader, X509CertificateParser parser, ref byte[] buffer)
		{
			var record = new X509CertificateRecord ();

			for (int i = 0; i < reader.FieldCount; i++) {
				switch (reader.GetName (i).ToUpperInvariant ()) {
				case "CERTIFICATE":
					record.Certificate = DecodeCertificate (reader, parser, i, ref buffer);
					break;
				case "PRIVATEKEY":
					record.PrivateKey = DecodePrivateKey (reader, i, ref buffer);
					break;
				case "ALGORITHMS":
					record.Algorithms = DecodeEncryptionAlgorithms (reader, i);
					break;
				case "ALGORITHMSUPDATED":
					record.AlgorithmsUpdated = DateTime.SpecifyKind (reader.GetDateTime (i), DateTimeKind.Utc);
					break;
				case "TRUSTED":
					record.IsTrusted = reader.GetBoolean (i);
					break;
				case "ID":
					record.Id = reader.GetInt32 (i);
					break;
				}
			}

			return record;
		}

19. Example

View license
private async Task<string> GetDatabaseSchemaAsync(DbConnection connection)
        {
         /n ..... /n //View Source file for more details /n }

20. Example

View license
public override string GetPassword(string username, string answer)
        {
            if (!Enable/n ..... /n //View Source file for more details /n }

21. Example

View license
public override bool ValidateUser(string username, string password)
        {
            bool isVal/n ..... /n //View Source file for more details /n }

22. Example

View license
public override string ResetPassword(string username, string answer)
        {
            if (!Enab/n ..... /n //View Source file for more details /n }

23. Example

View license
private Delegate GetValuesGetter(int ind, MemberInfo m)
			{
				var memberType = ReflectionUtils.Ge/n ..... /n //View Source file for more details /n }