Can subsonic help me building these main stored procedures?
Can i edit its template to make it generate these SPs?
Where to begin learning that?
Can subsonic help me building these main stored procedures?
Can i edit its template to make it generate these SPs?
Where to begin learning that?
As far as version 2 is concerned you could probably edit the templates to generate your SP creation scripts but it would be a far from trivial task. And of course you'd then have to add the functionality to execute the scripts, cleaning up previous generated SPs and ensuring you didn't drop any others. To be honest I would advise against it as SubSonic is designed to generate .Net code based on your DB.
With version 3 of SubSonic and all the power of t4 you could add the functionality a lot more easily, however once you've got the full Linq support in version 3 you don't need SPs for paging and I can't see a reason to generate SPs instead of using Linq itself.
Hi Amr - If you really need to use SPs then something like Codesmith is a better choice. You can build out your own SP generators using T4 - but it's just an extra layer of fluff when it comes to stuff Subsonic can do you for you.
Up to you and how you design things - but SPs have sort of lost their shine. And no - Linq is not slower than SPs. In fact there is no perf gain from SPs at all.