Marten.FSharp icon indicating copy to clipboard operation
Marten.FSharp copied to clipboard

A set of FSharp wrappers around Marten

Results 11 Marten.FSharp issues
Sort by recently updated
recently updated
newest added

I recently found out that discrimated unions does not work well with aggregation in Marten: https://stackoverflow.com/questions/56479902/f-marten-does-not-load-the-aggregate For a given discriminated union: ```fsharp type AccountCreation = { Owner: string AccountId: Guid...

In the Marten docs ``` var store = DocumentStore.For(_ => { _.Connection("some database connection"); // In the following line of code, I'm setting // up a foreign key relationship to...

* Min: Async/Task/TaskCt * Max: Async/Task/TaskCt * Average: Average/Async/Task/TaskCt * Sum: Sum/Async/Task/TaskCt * SelectMany: SelectMany * Distinct: Distinct * MatchesSql: MatchesSql (maybe make a function that takes the query sql...

Currently the patch api only supports `inc` `incPlural` and `set`. Marten has added many other operations that we should wrap.

There is `deleteBy` and `countWhere` that allow predicates to filter. We should consider either doing `xxxBy` or `xxxWhere` to keep naming consistent.

As of now, you can't use [named parameter queries](https://jasperfx.github.io/marten/documentation/documents/querying/sql/#named-parameter-queries) easily from F# because the parameter handler [looks for anonymous objects](https://github.com/JasperFx/marten/blob/8d758aa614a05a43900eff3167f7a89e6c9052f8/src/Marten/Linq/QueryHandlers/UserSuppliedQueryHandler.cs#L54) which F# doesn't support. The [code for detecting anonymous types](https://github.com/JasperFx/marten/blob/master/src/Marten/Util/ReflectionExtensions.cs#L84)...

For following type ``` type User = { Id : Guid Username : string Password : string DOB : DateTime option } ``` I define store as shown below ```...

I'm not entirely sure if the build project is correct as this is my first time setting up FAKE and using MiniScaffold. The publish workflow requires a ``GITHUB_TOKEN`` and ``NUGET_TOKEN``...

There are some instances where expressions are required and quotations + `Lambda.ofArity1` could be of use... especially considering the nuances of calling C# overloads in F#. Here's a practical example...

Placeholder issue for 7.0 support. I'll investigate the changes needed and submit a PR asap https://github.com/JasperFx/marten/releases/tag/v7.0.0