Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. type DataTypesTest = ExcelFile<"testsExcelProvider.TestsDataTypes.xlsx">
  2.  
  3. A direct reference to the generated type 'ExcelFile' is not permitted. Instead, use a type definition, e.g. 'type TypeAlias = <path>'. This indicates that a type provider adds generated types to your assembly.
  4.  
  5. // add a parameterless constructor which loads the file that was used to define the schema
  6. let ctor = ProvidedConstructor([])
  7. ctor.BaseConstructorCall <- fun [] -> <@@ ExcelFileInternal(resolvedFilename, range) @@>
  8. providedExcelFileType.AddMember(ctor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement