コード例 #1
0
 /// <summary>
 ///  Hàm phải được gọi để khởi tạo chức năng tác nghiệp
 /// </summary>
 /// <param name="connectionString"></param>
 public static void Initialize(string connectionString)
 {
     SupplierDB = new DataLayers.SqlServer.SupplierDAL(connectionString);
     CustomerDB = new DataLayers.SqlServer.CustomerDAL(connectionString);
     ShipperDB  = new DataLayers.SqlServer.ShipperDAL(connectionString);
     CategoryDB = new DataLayers.SqlServer.CategoryDAL(connectionString);
     ProductDB  = new DataLayers.SqlServer.ProductDAL(connectionString);
 }
コード例 #2
0
 /// <summary>
 /// Hamf phai duoc goi de khoi tao chuc nang tac nhghiep
 /// </summary>
 /// <param name="connectionString"></param>
 public static void Initialize(string connectionString)
 {
     SupplierDB  = new DataLayers.SqlServer.SupplierDAL(connectionString);
     CustomerDB  = new DataLayers.SqlServer.CustomerDAL(connectionString);
     ShipperDB   = new DataLayers.SqlServer.ShipperDAL(connectionString);
     CategoryDB  = new DataLayers.SqlServer.CategoryDAL(connectionString);
     EmployeeDB  = new DataLayers.SqlServer.EmployeeDAL(connectionString);
     OrderDB     = new DataLayers.SqlServer.OrderDAL(connectionString);
     ProductDB   = new DataLayers.SqlServer.ProductDAL(connectionString);
     AttributeDB = new DataLayers.SqlServer.AtrributeDAL(connectionString);
     HelperDB    = new DataLayers.SqlServer.HelperDAL(connectionString);
 }