I have some entities like: Customers
, Orders
, Invoices
.
For each one of them I grouped their CRUD operations and few other in interfaces like: ISvcCustomerMgmt
, ISvcOrderMgmt
, ISvcInvoicesMgmt
, ISvcPaymentsMgmt
.
Now I need to create few WCF service contracts independent to each other which will consist of implementing one or more of this interfaces.
- one for internal use
ISvcInternal: ISvcCustomerMgmt, ISvcOrderMgmt, ISvcInvoicesMgmt //,maybe more in the future
- one for external use (3rd parties)
ISvcExternal: ISvcCustomerMgmt //,maybe more in the future
So, my real services look like this: 1) SvcInternal: ISvcInternal
, 2) SvcExternal: ISvcExternal
.
When I see SvcInternal
implementation, it gets bigger with a lot of operations.
Is this method flexible enough? Do you recommend another approach of splitting them up somehow? Feel free to share your thoughts.
Thank you.