I have to make an architecture that works in both wpf and mvc. I also intend to add a webAPI for other platforms. I made base libraries(more than one), a BL lib, DAL lib,Model lib ,ViewModel(for code sharing between wpf and mvc) lib and mvc proj and wpf proj. How do i connect these layers. Factory pattern in all layers and just create objects of other and call to connect each layer? Repositories pattern etc seems complex and unneeded to me.
Only demand is it should be manageability and less confusing. Its for an erp. Basic billing, finance etc. I don't have pattern preference. i am open to any suggestions of pattern . Multi user and speed are my only concern. This will be a product, so i should be able to separately pack different module and give to different clients. I will be most grateful if i could get a example proj or codes with one class each layer.