There certainly must be someone on these forums that has more knowledge about this then me but I will give you what I know.
In summary - A sampler itself is not going to magically make some sample set have legato. The samples have to have been recorded with a legato articulation OR the software has to have a way to mimic the effect. If the bass samples have a legato articulation you should be able to set up the sampler to trigger the legato in various ways but you will have to setup the sampler appropriately to trigger the legato samples in the way you want.
Read below if you want to know how I got to my summary
I think what you are saying makes sense. In a literal sense a sampler is just something that can record snippets of sound, and in an expanded definition, give you tools to set things like loop points. In the olden days of hardware samplers they often were more of a sample player then a sampler. I had a Roland something or other and I never even created a new sample of my own. So basically it ended up being a sample player. It was already programmed with the samples and how to play them back. You could put your own samples in it and program loop points, samples to play at different velocities etc.
So that leads us to today where we can do all of this on our computers. There exists software that is called a "sampler" but most of them mean "sample playback and manipulation." So as an example, Native Instruments Kontak is a sample player. I have never done it but you can import your own samples, program them to respond how you want and then play them back. In Kontak this is known as a library or a patch within a library.
So, as an example. if you have a bunch of bass samples in raw audio format and you want to play them in a sample player you would need to create a library or patch in a format that the sample player understands. This would tell the sample player what samples to play when a key is hit, what to do when mod wheel is moved etc. One of these things could be to play a different sample, say a legato sample, if you hold the previous note down while playing the next one. Or it could be a key switch where if you hit say C1 then the next note you play will play back the legato sample. However, this is all dependent on if the samples that are available to play actually contain a sample that was played with a legato articulation. If there does not exist a legato sample then you would have to fake the legato sound by using some midi or software control like a pitch bend or volume envelope.
Sorry, for making this so wordy.