/// <summary> Deletes from the persistent storage all VendorAddress 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="addressInstance">AddressEntity instance to use as a filter for the VendorAddressEntity objects to return</param> /// <param name="addressTypeInstance">AddressTypeEntity instance to use as a filter for the VendorAddressEntity objects to return</param> /// <param name="vendorInstance">VendorEntity instance to use as a filter for the VendorAddressEntity objects to return</param> /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns> public int DeleteMultiManyToOne(IEntity addressInstance, IEntity addressTypeInstance, IEntity vendorInstance) { VendorAddressDAO dao = DAOFactory.CreateVendorAddressDAO(); return(dao.DeleteMulti(base.Transaction, addressInstance, addressTypeInstance, vendorInstance)); }