CSMongo.Requests.CollectionRequestBase.GetDatabaseTarget C# (CSharp) Method

GetDatabaseTarget() public method

Returns the full string name for the database target
public GetDatabaseTarget ( ) : string
return string
        public virtual string GetDatabaseTarget()
        {
            //if there is no collection, just send back the database
            if (string.IsNullOrEmpty(this.Collection)) {
                return this.Database;
            }

            //otherwise return the formatted version
            return string.Format(
                FULL_DATABASE_NAME_FORMAT,
                this.Database,
                this.Collection
                );
        }