DataSets to POCOs - an inquiry regarding DAL architecture
Posted
by alexsome
on Stack Overflow
See other posts from Stack Overflow
or by alexsome
Published on 2010-05-17T14:30:24Z
Indexed on
2010/05/17
16:10 UTC
Read the original article
Hit count: 258
Hello all,
I have to develop a fairly large ASP.NET MVC project very quickly and I would like to get some opinions on my DAL design to make sure nothing will come back to bite me since the BL is likely to get pretty complex. A bit of background: I am working with an Oracle backend so the built-in LINQ to SQL is out; I also need to use production-level libraries so the Oracle EF provider project is out; finally, I am unable to use any GPL or LGPL code (Apache, MS-PL, BSD are okay) so NHibernate/Castle Project are out. I would prefer - if at all possible - to avoid dishing out money but I am more concerned about implementing the right solution. To summarize, there are my requirements:
- Oracle backend
- Rapid development
(L)GPL-free
Free
I'm reasonably happy with DataSets but I would benefit from using POCOs as an intermediary between DataSets and views. Who knows, maybe at some point another DAL solution will show up and I will get the time to switch it out (yeah, right). So, while I could use LINQ to convert my DataSets to IQueryable, I would like to have a generic solution so I don't have to write a custom query for each class.
I'm tinkering with reflection right now, but in the meantime I have two questions:
- Are there any problems I overlooked with this solution?
- Are there any other approaches you would recommend to convert DataSets to POCOs?
Thanks in advance.
© Stack Overflow or respective owner