Skip to content

Commit b76ce74

Browse files
committed
Updated CRUD example to remove explicit dependency on Env type
1 parent c02a73c commit b76ce74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/CRUD/Backend/Handlers.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
open System
44
open System.Threading.Tasks
5+
open Backend.Abstractions
56
open Backend.Database
6-
open Backend.Env
77
open Shared
88
open Backend.Services
99
open Microsoft.AspNetCore.Http
1010
open Microsoft.Extensions.Logging
1111
open Oxpecker
1212
open type Microsoft.AspNetCore.Http.TypedResults
1313

14-
type OperationEnv(env: Env) =
14+
type OperationEnv<'T when 'T :> IDbEnv and 'T:> IAppLogger>(env: 'T) =
1515
interface IGetOrders with
1616
member this.GetOrders() = OrderRepository.getOrders env
1717
interface IGetOrder with

0 commit comments

Comments
 (0)