naming converntion are also not working

31 views
Skip to first unread message

nivrutt...@gmail.com

unread,
Aug 14, 2020, 5:10:30 AM8/14/20
to AutoMapper-users
cfg.AddDataReaderMapping();
cfg.SourceMemberNamingConvention = new LowerUnderscoreNamingConvention();
cfg.DestinationMemberNamingConvention = new PascalCaseNamingConvention();
cfg.CreateMap<IDataReader, MyDTO>();

class MyDTO{
 public int MyId { get; set;}
 public string MyName { get; set;}
}

MyDTO table - postgressql
my_id serial
my_name character

naming converntion are also not working

Thanks
Nivrutti
Reply all
Reply to author
Forward
0 new messages