Skip to content

Instantly share code, notes, and snippets.

@nakamura-to
Created January 7, 2012 14:26
Show Gist options
  • Save nakamura-to/1574872 to your computer and use it in GitHub Desktop.
Save nakamura-to/1574872 to your computer and use it in GitHub Desktop.
dynamic object in Soma
open System
open Soma.Core
let config =
{ new MsSqlConfig() with
member this.ConnectionString = "Data Source=.\SQLEXPRESS;Initial Catalog=Soma.Tutorial;Integrated Security=True" }
let person = dynamic config.Dialect
person?name <- "hoge";
person?age <- 20;
printfn "%s is %d years old." person?name person?age
Console.ReadKey() |> ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment