Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface ProductsProvider<T> where T: IProduct
- {
- T GetById(long id)
- }
- class MyProduct : IEntityBase
- {
- ctor(ProductsProvider<MyProduct> provider)
- {
- this.provider = provider;
- }
- MyProduct GetById()
- {
- this.Provider.GetById(id)
- }
- ...
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement