Skip to content

Instantly share code, notes, and snippets.

@samueleresca
Last active April 14, 2018 10:37
Show Gist options
  • Save samueleresca/2fc4d58ae8a485bd8ee9b48307caae61 to your computer and use it in GitHub Desktop.
Save samueleresca/2fc4d58ae8a485bd8ee9b48307caae61 to your computer and use it in GitHub Desktop.
let configureServices (services : IServiceCollection) =
services.AddDbContext<LabelsContext>
(fun (options : DbContextOptionsBuilder) ->
options.UseSqlServer
(@"Server=localhost;Database=ContentDataDB2;User Id=<user_id>;Password=<password>;")
|> ignore) |> ignore
services.AddCors() |> ignore
services.AddGiraffe() |> ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment