-2

When I open EntityFramework.BulkInsert in ILSpy and try to navigate to 'this.Provider.Context.Db' in the MappedDataReader Constructor it doesn't work.

I also have the same problem if I de-compile it and try to re-compile it in VS. VS says 'CS1061 'type' does not contain a definition for 'member' and no extension method 'name' accepting a first argument of type 'type' could be found (are you missing a using directive or an assembly reference?).'

Code Snippet of MappedDataReader Constructor

How is .Net able to execute this assembly?

spottedmahn
  • 14,823
  • 13
  • 108
  • 178
  • 3
    The project is open source, you can get the original source code for that class [right here](https://efbulkinsert.codeplex.com/SourceControl/latest#dev/Src/EntityFramework.BulkInsert/Helpers/MappedDataReader.cs) why are you using a decompiler at all? – Scott Chamberlain Sep 08 '16 at 12:43

1 Answers1

1

Decompiled source is unlikely to be the same as the original source. The original source code was compiled into IL and the decompiler attempts to create functionally equivalent code from the IL with varying degrees of success. It is not unlike the process of taking a chunk of english text, tranlating it to another language and translating it back, ala Google Translate Sings.

Miniver Cheevy
  • 1,667
  • 2
  • 14
  • 20