Created
January 7, 2012 14:26
-
-
Save nakamura-to/1574872 to your computer and use it in GitHub Desktop.
dynamic object in Soma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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