Hi
There seems to be so many different kinds.
- raw ADO.NET
- LINQ-to-SQL
- Entity Framework
- Typed Datasets
Currently I am using Typed Datasets. I like them because I got the GUI for the dataset and I can and my sql is in its own place.
The thing I don't like about them is since they are typed if you try to Join some tables together and they return some stuff that the set does not expect you can do that.
So anyways I seen now is 2 different MVC books they been using linq to sql. Now looking a bit into it I am not sure if I should use it or not.
I am not sure what the advantages over a typed dataset. I am guessing I still could do a 3 tier arch with linq to sql with the linq to sql gui thing being the data layer?
Now I also heard that linq to sql is dieing and not going to be further developed. I am not sure if this is true or not since like I said all these new MVC books seem to use it.
They also use something called the "Repository Pattern" I am kinda confused about that one too.
First they say something like this
"...using a repository pattern can make it easier to change data storage implementations in the future, and it can help facilitate unit testing an application without requiring a real database." -NerdDinner
Ic the unit testing part. I been thinking about that one and how I would test that if I were using datasets. I guess this pattern could be applied to a typed dataset too.
The thing I don't get is "change data storage implemntations". What does that mean does that mean I can change from linq to sql (to) Ado.net?
I don't see that since they are written different. So I just don't understand it.
So I am not sure if I should use this or stick to what I am using or what. It's tempting to use since all these MVC books use it but if it is dead/dieing then I dont' know.
Also does anyone know any good Repository Pattern tutorials? Thanks
Ms Sql 2005, VS 2008 SP1, Windows XP Pro.