In no particular order... - Created projects using F# generator, using Paket and FAKE - Split "entities" into their own project, and created interface for data functions required on those entities - Renamed "data" project and used it as an implementation of data access - Created "logic" layer that takes the data interface, and does the non-persistence-related manipulation of items - Moved "web" project to "app", and modified Nancy modules to utilize Logic project and data interface instead of Data project and RethinkDB connection - Created test placeholder project; will be filling that out shortly (TAD?)
12 lines
376 B
Forth
12 lines
376 B
Forth
[<AutoOpen>]
|
|
module MyWebLog.Data.RethinkDB.Extensions
|
|
|
|
open RethinkDb.Driver.Ast
|
|
open RethinkDb.Driver.Net
|
|
|
|
let await task = task |> Async.AwaitTask |> Async.RunSynchronously
|
|
|
|
type ReqlExpr with
|
|
/// Run a SUCCESS_ATOM response that returns multiple values
|
|
member this.RunListAsync<'T> (conn : IConnection) = this.RunAtomAsync<System.Collections.Generic.List<'T>> conn
|