This question is locked. New answers and comments are not allowed.
Hi,
I am new to MVC and totally new to Telerik ORM. Just wanted to know:
1) Should I create interfaces for each for .generated.cs and then use those interfaces in my business logic using Ninject?
2) If I don't want to have dependencies on classes then I will have to create an interface for each class? or is there a way to auto generate them?
3) If I am using dbContext just in my business layer and not directly in the controllers, should I still have to Dispose dbContext myself?
Telerik help shows using dbContext directly in controllers but I am not sure if that's the best way?
Please let me know if I am on the right path. I am thinking to create interfaces for all .generated.cs files and use (dbContext & interfaces with Ninject) only in business layer. My controllers would not know about ORM. Is this the best way?
Thanks for your help in advance!
I am new to MVC and totally new to Telerik ORM. Just wanted to know:
1) Should I create interfaces for each for .generated.cs and then use those interfaces in my business logic using Ninject?
2) If I don't want to have dependencies on classes then I will have to create an interface for each class? or is there a way to auto generate them?
3) If I am using dbContext just in my business layer and not directly in the controllers, should I still have to Dispose dbContext myself?
Telerik help shows using dbContext directly in controllers but I am not sure if that's the best way?
Please let me know if I am on the right path. I am thinking to create interfaces for all .generated.cs files and use (dbContext & interfaces with Ninject) only in business layer. My controllers would not know about ORM. Is this the best way?
Thanks for your help in advance!