Пример #1
0
        /// <summary> Deletes from the persistent storage all WorkOrder entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
        /// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
        /// <param name="accountInstance">AccountEntity instance to use as a filter for the WorkOrderEntity objects to return</param>
        /// <param name="employeeInstance">EmployeeEntity instance to use as a filter for the WorkOrderEntity objects to return</param>
        /// <param name="serviceTypeInstance">ServiceTypeEntity instance to use as a filter for the WorkOrderEntity objects to return</param>
        /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
        public int DeleteMultiManyToOne(IEntity accountInstance, IEntity employeeInstance, IEntity serviceTypeInstance)
        {
            WorkOrderDAO dao = DAOFactory.CreateWorkOrderDAO();

            return(dao.DeleteMulti(base.Transaction, accountInstance, employeeInstance, serviceTypeInstance));
        }
		/// <summary> Deletes from the persistent storage all WorkOrder entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
		/// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
		/// <param name="productInstance">ProductEntity instance to use as a filter for the WorkOrderEntity objects to return</param>
		/// <param name="scrapReasonInstance">ScrapReasonEntity instance to use as a filter for the WorkOrderEntity objects to return</param>
		/// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
		public int DeleteMultiManyToOne(IEntity productInstance, IEntity scrapReasonInstance)
		{
			WorkOrderDAO dao = DAOFactory.CreateWorkOrderDAO();
			return dao.DeleteMulti(base.Transaction, productInstance, scrapReasonInstance);
		}