Reputation: 64207
I don't need any data to be stored. I'd like an application to start, create an Entity Framework entities container based on the model I've designed but having no data records in it, then generate some data (from user input and other input sources), work with it and discard all the data on close, without propagating any data operations made with EF contect to a real database hosted on server or in a file. How do I implement such a pattern?
I want this because I want my non-persistent objects to expose "LINQ to Entities" functionality for manipulating and binding to WF and WPF controls.
I use Entity Framework 4 and Visual Studio 2010.
Upvotes: 1
Views: 888
Reputation: 4842
You don't need to use EF for "LINQ to Entities" you can use "LINQ to Objects" on simple POCOs by exposing your collections as IEnumerable.
Here: http://msdn.microsoft.com/en-us/library/bb397919.aspx
Upvotes: 2