// Token: 0x06000052 RID: 82 RVA: 0x00003A1C File Offset: 0x00001C1C
        void SqlMapper.ICustomQueryParameter.AddParameter(IDbCommand command, string name)
        {
            IDbDataParameter dbDataParameter = command.CreateParameter();

            dbDataParameter.ParameterName = name;
            SqlDataRecordListTVPParameter.Set(dbDataParameter, this.data, this.typeName);
            command.Parameters.Add(dbDataParameter);
        }
Esempio n. 2
0
 public void SetValue(IDbDataParameter parameter, object value, Type declaredType = null)
 {
     SqlDataRecordListTVPParameter.Set(parameter, value as IEnumerable <Microsoft.SqlServer.Server.SqlDataRecord>, null);
 }
 public void SetValue(IDbDataParameter parameter, object value)
 {
     SqlDataRecordListTVPParameter.Set(parameter, value as IEnumerable <Npgsql.NpgsqlDataReader>, null);
 }
Esempio n. 4
0
 public void SetValue(IDbDataParameter parameter, object value)
 {
     SqlDataRecordListTVPParameter <T> .Set(parameter, value as IEnumerable <T>, null);
 }