install database module in generateAll script

This commit is contained in:
Wolfgang Hottgenroth 2021-11-23 14:48:31 +01:00
parent ebb0b87543
commit 76418aee19
Signed by: wn
GPG Key ID: E49AF3B9EF6DD469

View File

@ -26,6 +26,7 @@ do
done
if [ "$REMOVE" = "1" ]; then
echo "remove output directory"
rm -rf output
fi
@ -62,13 +63,16 @@ cp DbService.cs output/src/$PACKAGE_NAME/Services
echo "generate endpoint code from openapi.yaml"
python3.10 generate.py
echo "copy endpoint code into source code try"
echo "copy endpoint code into source code tree"
cp regular.cs output/src/$PACKAGE_NAME/Implementations
if [ "$BUILD" = "1" ]; then
echo "build service"
cd output
pushd src/$PACKAGE_NAME
dotnet add package MySqlConnector --version 2.0.0
popd
sh build.sh
fi