I’ve got a nice DAL generated using Subsonic. Is there a way I can generate a skeleton for the BLL? I don’t want to plug the SS layer directly into my GUI.
I’ve trudged through both SS forums and it seems that everyone calls the SSS-generated layer a DAL, but they use it as a BLL.
Have you used SS and seperated the DAL and BLL tiers without manually coding the BLL from scratch?
No, but there are some options. You can extend the generated table classes with partial class files to add more logic, and this might be good enough for many smaller applications. You also may need DTO classes as well, and subsonic 3’s table classes usually seem to work as DTO objects. You can write additional t4 template files in subsonic 3 to create business classes, one class per table. The code will be a lot like the existing template code so should be pretty easy. You could even take the template code for the table classes in ss3 and use them in ss2 to generate files. It depends on how badly you want to generate a simple set of BLL classes.