Produces classes/structs that implement IBlueRow with strongly typed properties for each column.
19 lines
701 B
XML
19 lines
701 B
XML
<Project>
|
|
|
|
<Import Project="..\Directory.Build.targets" />
|
|
|
|
<Target
|
|
Name="GenerateRowTypes"
|
|
BeforeTargets="BeforeCompile"
|
|
Condition="'@(RowType)'!=''"
|
|
Inputs="%(RowType.SchemaJson)"
|
|
Outputs="$(IntermediateOutputPath)/RowTypes/%(RowType.TypeName).cs">
|
|
<MakeDir Directories="$(IntermediateOutputPath)/RowTypes" />
|
|
<Exec Command="dotnet t4 %(RowType.Identity) -p SchemaJson=%(RowType.SchemaJson) -p TypeName=%(RowType.TypeName) -p TableName=%(RowType.TableName) -o $(IntermediateOutputPath)/RowTypes/%(RowType.TypeName).cs" />
|
|
<ItemGroup>
|
|
<Compile Include="$(IntermediateOutputPath)/RowTypes/%(RowType.TypeName).cs" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|