I’m using EF in VS 2010, with C# to return an object that I am then using CsvHelper to write out as a CSV data file.
The problem that I am having is that EF appears to be creating two properties that are being output in my CSV file:
EntityState and EntityKey
I would like to either suppress these properties from being created with my object, or at least be able to suppress them from the CSV output datafile that I’m writting to disk.
Any ideas?
Unless you are able to control how the CSV helper selects properties from your object, you are going to want to use POCO entities.