fsharpcodeprovider

CompileAssemblyFromFile

风流意气都作罢 提交于 2019-12-11 08:31:45
问题 Why I get the error when trying to do this function: let compile_file path use_asms output = use pro = new FSharpCodeProvider() let opt = CompilerParameters(use_asms, output) let res = pro.CompileAssemblyFromFile(opt, path) // <-- Error if res.Errors.Count = 0 then Some(FileInfo(res.PathToAssembly)) else None Error-code: -2147467259 Error: cant find the file specified Now I'm trying two broken implementations: type System.CodeDom.Compiler.ICodeCompiler with member this.CompileAssemblyFromFile

Automatic generation of record type based on MySql database tables, for use in FSharpDAL

你离开我真会死。 提交于 2019-12-08 07:07:15
问题 I have been using FSharpDAL to read data tables in Mysql database. It works well, but you have to provide it the record type. Which means for every table you have to define a record type. I would like to get the record type generated automaticly from the table schema. Also when the table column is nullable i would like the coresponding record field to be an option type. Is there something out there that can do this ? (until type providers arrive) Thanks a lot Note I have tried to do my