This file contains hidden or 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
module LoadCsv | |
open FSharp.Data | |
open FSharp.Data.Sql | |
open System | |
let [<Literal>] ConnectionString = "Server=localhost;Database=sales;User=root;Password=YOUR-DB-PASSWORD-HERE" | |
let [<Literal>] DbVendor = Common.DatabaseProviderTypes.MYSQL | |
let [<Literal>] ResPath = __SOURCE_DIRECTORY__ + "/../packages/MySql.Data/lib/net45" |
This file contains hidden or 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
[<AbstractClass>] | |
type Vehicle() = | |
member val Color = Unknown with get, set | |
member val Position = {longitude = 0.0; latitude = 0.0} with get, set | |
member val Speed = 0.0 with get, set | |
member this.Accelerate increment = | |
// your logic goes here | |
this.Speed <- this.Speed + increment |