Singleton Design Petturn 의 사용
public class FineUtil { public static string CONSTR = @"Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDirectory|\Student.mdf; Integrated Security=True;User Instance=True"; public static string GETALLSTUDENT = "SELECT * FROM STUDENT "; } public class FineDao { private FineSingle fines; //멤버로 선언 public FineDao(FineSingle fines) { this.fines = fines; //멤버를 초기화 } public DataSet GetAllStudent() { /..
C#
2007. 8. 10. 09:50