C# Design Reduce a Long List of Methods

Posted by guazz on Stack Overflow See other posts from Stack Overflow or by guazz
Published on 2010-05-04T21:47:39Z Indexed on 2010/05/04 21:58 UTC
Read the original article Hit count: 209

Filed under:
|
|

I have a simple application that loads data from an XML file to a database.

public class EmployeeLoader()  
{ 
   public void LoadEmpoyees()
   {...}

   public void LoadSalaries()
   {...}

   public void LoadRegistrationData()
   {...}    

   public void LoadTaxData()
   {...}
}

Is it a good idea to have multiple "Load" methods as this looks like a code smell as I have about tweney Load methods? If so, how do I make my code more readable?
Each Load method loads data to the corresponding table in the database via a repository?

© Stack Overflow or respective owner

Related posts about c#

Related posts about database