Ejemplo n.º 1
0
        public void DeleteGeneration(long iGenerationId)
        {
            if (iGenerationId < 1)
            {
                throw new Exception("L'ID de la genenration est invalide");
            }

            var theEntity = DBRecordDataService.GetSingle <T_E_Generation>(x => x.GenerationId == iGenerationId);

            //Suppression base de données
            DBRecordDataService.Delete <T_E_Generation>(theEntity);
        }
Ejemplo n.º 2
0
        public void DeleteLock(long iLockId)
        {
            if (iLockId < 1)
            {
                throw new Exception("L'ID du lock est invalide");
            }

            var theEntity = DBRecordDataService.GetSingle <T_E_Lock>(x => x.LockId == iLockId);

            //Suppression base de données
            DBRecordDataService.Delete <T_E_Lock>(theEntity);
        }