jonpryor / dblinq2007

Automatically exported from code.google.com/p/dblinq2007
0 stars 0 forks source link

GetTableColumnMember - Binding.NonPublic | Public #310

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. GetTableColumnMember should look for ColumnAttributes in both Public and 
NonPublic bindings. The standard LinqToSql library supports this?
2. When calling GetTableColumnMember with provided bindingFlags, the 
bindingFlags are NOT honored instead using the default .GetMembers() call.

This is needed for custom object mapping. i.e. 
http://dotnetslackers.com/articles/csharp/Making-LINQ-to-SQL-A-Bit-More-Abstract
.aspx

Patch attached.

Original issue reported on code.google.com by ghee...@gmail.com on 19 Apr 2011 at 1:37

Attachments: