I am working on an asp.net MVC 3 web application, i have the following two questions about the performance of my mvc application:-
-
currently i am implementing all the business logic in one model repository class ., expect that the repository implementation is quit huge (in regards to the number of lines of code), i am not having difficulties in maintaining this repository class. But my question is WILL having one repository class that implement all the business login for all entities can negatively affect the application performance comparing to having more than one repository?
-
currently i am adding the data annotation for the entities properties to implement client side validation and helper methods in partial classes and metadattypeof as i am using Db first apprach; such as
[MetadataType(typeof(Classes_validation))] public partial class Class {//code does here
, so will having more than one partial class for each entity can negatively affect the application performance?
BR
No, it will matter FAR more the type of activity in your methods. This can get quite difficult to deal with, why not transfer your business logic out to another class.