public CommandParameter(object value) { Value = value; if (value != null) { DbType = TypeMappings.TryGetDbType(value.GetType()); } }
public WhereFragment(string sql, params object[] parameters) : base(sql, "?", parameters.Select(x => Tuple.Create <object, NpgsqlDbType?>(x, TypeMappings.TryGetDbType(x.GetType()))).ToArray()) { }