OfflineTools Module
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
CreateMockEntities tableName dummydata
Parameters:
string
dummydata : obj
Returns: IQueryable<'T>
|
|
|
This can be used for testing. Creates fake DB-context entities.. Example: FSharp.Data.Sql.Common.OfflineTools.CreateMockSqlDataContext ["schema.MyTable1"; [| {| MyColumn1 = "a"; MyColumn2 = 0 |} |] :> obj] |> Map.ofList See project unit-test for more examples. NOTE: Case-sensitivity. Tables and columns are DB-names, not Linq-names. Limitation of mockContext: You cannot Create new entities to the mock context.
|
Full Usage:
mergeCacheFiles (sourcefile1, sourcefile2, targetfile)
Parameters:
string
sourcefile2 : string
targetfile : string
Returns: string
|