Drivers

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Create / Update LabVIEW Driver

    There seem to not exist any official LabVIEW Drivers / VIs for MongoDB.

    There do exist some LabVIEW VIs for MongoDB that work very well based on a C# DLL:
    https://github.com/RBXSystems/mongo-labview-driver/tree/master/CSharp/bin.

    However those only work with older MongoDB Versions and I can`t get them to work with Atlas and the most recent MongoDB Version 4.2, I guess the DLLs need to be updated (and depending on the changes of the API also some of the VIs)

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  2. BsonIgnoreIfEmpty - Property Attribute

    Like BsonIgnoreIfDefault and BsonIgnoreIfNull, we can add BsonIgnoreIfEmpty.
    It can be added on IEnumerables (which we basically know they cannot have infinite values since it is inserted to db after all..) and if the IEnumerable is empty, it wont serialize it to the db BUT will know to put default value (an empty list for example) in said property.

    They will decrease below boilerplate code for IEnumerable<T>:

    Serialization:
    Field = otherField?.count > 0 ? otherFIeld : null;

    Deserialization:
    otherField = Field ?? new List<T>;

    Obviously, we can improve this code to also support Dictionary<Tkey, Tvalue>.

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  3. if drive can deal with DateTime.Date,it will be useful

    we offen have this require,we need to compare DateTime field on Date(exclude time),but if use drive compare with DateTime.Date,drive will throw a exception tell us dont support..

    db.CheckOns.Find(x => x.RecordTime.Date == new DateTime(2020, 3, 19)).ToList();
    //public DateTime RecordTime{get;set}

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  4. use ConventionPack in aggregate same as find

    for example :We want save string value of Enum to database,we set EnumRepresentationConvention Convention.
    then we can use it in match. but in aggregate group,it dosent work:

    public enum Gender { Male,Female}
    public class Person
    {
    public int Age { get; set; }
    public Gender Gender { get; set; }
    }
    [HttpGet("test")]
    public object Test()
    {
    var query=db.database.GetCollection<Person>("persons").Aggregate().Group(x => x.Age,g=>new {
    g.Key,
    MaleCount=g.Sum(x=>x.Gender==Gender.Male?1:0),
    FemaleCount = g.Sum(x => x.Gender == Gender.Female ? 1 : 0),
    });
    var queryString = query.ToString();
    return queryString;
    }
    //queryString will be: aggregate([{ "$group" : { "
    id" : "$age", "MaleCount" : { "$sum" : {…

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  5. SnakeCaseElementNameConvention

    Please add support for snake case convention. Snake Case is super popular with API designs.

    https://mongodb.github.io/mongo-csharp-driver/2.13/reference/bson/mapping/conventions/

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  6. 1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  7. Create MSI package to install .NET MongoDB driver

    I manage SQL Server. I would like to request standalone 32 and 64 bit MongoDB .Net Driver in MSI format. We typically do not install Development tools on SQL Server database hosts (no visual studio, no nuget.exe). So downloading the driver using package manager is challenging. If that is not possible, can you provide us how to download and install the driver using Powershell?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  8. Expired Transactions failures should be reported more clearly in the driver error message

    Long-running transactions may trigger an aborted transaction, but the cause is not clearly communicated by the driver exception message.

    Failed: Command insert failed: Transaction 1 has been aborted..
    Unhandled exception. MongoDB.Driver.MongoCommandException: Command insert failed: Transaction 1 has been aborted..

    To reproduce, set a very low timeout:

    replicaset:PRIMARY> db.adminCommand( { setParameter: 1, transactionLifetimeLimitSeconds: 1 } )

    Then run a long running transaction from the C# driver.

    The cause can be confirmed by checking the MongoDB log for a [abortExpiredTransaction]:

    replicaset:PRIMARY> show log global

    2020-07-31T03:59:49.196+0000 I COMMAND [abortExpiredTransactions] Aborting transaction with txnNumber 1 on session xxxxxx because it has been running for…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  C#  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base