1

Due to working with enterprise library data blocking to execute stored procedures with Table valued params (TVP).

I want to be able to map a list => DataTable before the stored procedure execution.

The Problem is that I need to perform this conversion with AutoMapper and not manually.

I wish to do something like this:

Mapper.CreateMap<MyObject, IDataReader>()
    .ForMember
    ...
    ...
EfiBN
  • 408
  • 2
  • 11
  • I don't think that automapper is the right tool for the job here. – Andrew Savinykh Jul 07 '15 at 20:13
  • @EfiBN For you previous question: var alphabet = 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z'.split(','); function generate(size, prefix, arr) { alphabet.forEach(function(letter) { if(size === 1) { arr.push(prefix + letter); } else { generate(size - 1, prefix + letter, arr); } }); } – malix Mar 11 '16 at 20:00

1 Answers1

2

It sounds like what you need is something like Dapper instead of AutoMapper:

https://github.com/StackExchange/dapper-dot-net

Gabe Perez
  • 322
  • 1
  • 3
  • 11