-
Notifications
You must be signed in to change notification settings - Fork 38
Fonlow.Poco2Ts
zijianhuang edited this page Apr 8, 2017
·
3 revisions
- Fonlow.Poco2Ts API POCO2TS.exe is a simple command line program utilizing Fonlow.Poco2Ts.dll.
If in your development process you would prefer to generate TypeScript codes through Powershell scripts or some in-process execution of your own applications, such as some MS Build components, you may consider calling API functions listed below.
public static void Walk(string assemblyFilePath, string tsFilePath, Fonlow.Poco2Ts.CherryPickingMethods methods)
Member of Fonlow.Poco2Ts.PocoAssemblyFileWalker
Summary:
Walk classes in the assembly decorated by cherry picking data annotation attributes, and save TypeScript codes to the file.
Parameters:
assemblyFilePath: Absolute or relative path, including the assembly file extension name dll or exe.
public void CreateTsCodeDom(System.Reflection.Assembly assembly, Fonlow.Poco2Ts.CherryPickingMethods methods)
Member of Fonlow.Poco2Ts.Poco2TsGen
public void CreateTsCodeDom(System.Type[]() types, Fonlow.Poco2Ts.CherryPickingMethods methods)
Member of Fonlow.Poco2Ts.Poco2TsGen
Summary:
Create type declarations in TypeScripCodeDom for POCO types. For an enum type, all members will be processed regardless of EnumMemberAttribute.
Parameters:
types: POCO types.
public void SaveTsCodeToFile(string fileName)
Member of Fonlow.Poco2Ts.Poco2TsGen
Summary:
Save TypeScript codes generated into a file.
public void WriteTsCode(System.IO.TextWriter writer)
Member of Fonlow.Poco2Ts.Poco2TsGen
Summary:
Save TypeScript codes generated into a TextWriter.
And Fonlow.Poco2Ts.dll is also used in ClientApiGen, so the TypeScript data interfaces are concatenated with client API codes generated.