예제 #1
0
 /// <summary>
 /// Prepares the employee dataprovider.
 /// </summary>
 public void PrepareEmployeeDP()
 {
     using (RestoBook.Common.Model.DataSetRestoBookTableAdapters.EMPLOYEETableAdapter daEmployee = new RestoBook.Common.Model.DataSetRestoBookTableAdapters.EMPLOYEETableAdapter())
     {
         daEmployee.Fill(ds.EMPLOYEE);
     }
 }
예제 #2
0
        /// <summary>
        /// Prepares the full dataprovider.
        /// </summary>
        public void PrepareFullDataProvider()
        {
            using (RestoBook.Common.Model.DataSetRestoBookTableAdapters.RESTAURANTTableAdapter daRestaurant = new RestoBook.Common.Model.DataSetRestoBookTableAdapters.RESTAURANTTableAdapter())
            {
                daRestaurant.Fill(ds.RESTAURANT);
            }

            using (RestoBook.Common.Model.DataSetRestoBookTableAdapters.FOODTYPETableAdapter daFoodType = new RestoBook.Common.Model.DataSetRestoBookTableAdapters.FOODTYPETableAdapter())
            {
                daFoodType.Fill(ds.FOODTYPE);
            }

            using (RestoBook.Common.Model.DataSetRestoBookTableAdapters.SERVICETableAdapter daService = new RestoBook.Common.Model.DataSetRestoBookTableAdapters.SERVICETableAdapter())
            {
                daService.Fill(ds.SERVICE);
            }

            using (RestoBook.Common.Model.DataSetRestoBookTableAdapters.OWNERTableAdapter daOwner = new RestoBook.Common.Model.DataSetRestoBookTableAdapters.OWNERTableAdapter())
            {
                daOwner.Fill(ds.OWNER);
            }

            using (RestoBook.Common.Model.DataSetRestoBookTableAdapters.EMPLOYEETableAdapter daEmployee = new RestoBook.Common.Model.DataSetRestoBookTableAdapters.EMPLOYEETableAdapter())
            {
                daEmployee.Fill(ds.EMPLOYEE);
            }
        }