I have a entity class generated by entity framework.
Then I created my custom POCO class that is pretty much the same as entity class which i use as viewmodel for asp.net mvc application.
Is there a way to make entity class castable to POCO class?
I ask because I need something like this:
db.Accounts.Cast<ViewModels.AccountVM>()
instead of this:
db.Accounts.ToList<ViewModels.AccountVM>()
saving few database cycles.
Thanks for insight