In software engineering, the design is a total solutions for common problems in software design. Profound idea of the design patterns is good to save the solution of object-oriented design and reuse them to solve the same problems. In this paper, the authors will consider the Template Method design pattern by E. Gamma et al have proposed applying this model to build and design an system access to a database on a server, the model of multi-tier system to perform data processing tasks in accordance with the requirements of the problem posed in practice. From there take a deeper look at some of the designs can be done in C #, learn the new features of the language in fact make it easier and more efficient software design object-oriented.