Skip to content

Store multiple documents with StoreDoc bug #1162

@davidst

Description

@davidst

Describe the bug
In the Wolverine V3.4.0 StoreDoc<T> now stores an object[] with one element of type T[].

To Reproduce

public recod Foo;

public void MartenOps_store_test()
{
    var docs = new[] { new Foo(), new Foo() };

    var storeOp = MartenOps.Store<Foo>(docs);

    storeOp.Documents.ShouldBe(docs);
}

Expected behavior
StoreDoc<T> should store an object[] with elements of type T.

Additional context

  • The bug was introduced in this commit.
  • The initial change from this commit introduced a breaking change in a minor version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions