Entity Framework with text files (no database!)

I am using Forms and DataSet, but now I am trying to use WPF and Entity Framework. My goal is to populate a DataGrid in WPF using the Entity Framework. However, I do not have a database! I have simple text files with data that I need to parse to fill my objects.

However, I get errors such as "The object type" TableName "is not displayed." and such failures I do not have a connection string.

Can I use Entity Framework without a database? Or do I need to return to using a DataSet?

+4
source share
1 answer

Interesting idea. Microsoft is very enthusiastic that you can theoretically write an EF provider that maps to any data warehouse. I have no experience with one that maps to a text file, but this link assumes someone did it using CSV (!): Http://social.msdn.microsoft.com/Forums/ar-SA/ adodotnetentityframework / thread / a0e9e20f-66d2-447c-8b7e-75de18535e63? persist = True

If you are stuck with text files, why not try LINQ to XML ?

And: Entity Framework with XML files

+5
source

All Articles