finish documentation

This commit is contained in:
EddyPuggle 2025-05-23 23:27:42 +02:00
parent 9baf89b8d2
commit cff6483fff
2 changed files with 195 additions and 82 deletions

View file

@ -0,0 +1,25 @@
{
"Generic Builder Codeunit": {
"prefix": "tbuilder",
"body": [
"codeunit ${1:ID} \"${2:YourName}Builder\"",
"{",
" var",
" MyProduct: Record ${3:YourTable};",
"",
" procedure Init(): Codeunit \"${2:YourName}Builder\"",
" begin",
" MyProduct.Init();",
" exit(this);",
" end;",
"",
" procedure Build(var Result: Record ${3:YourTable}): Codeunit \"${2:YourName}Builder\"",
" begin",
" Result := MyProduct;",
" exit(this);",
" end;",
"}"
],
"description": "Builder-Pattern Codeunit with placeholders for ID, Name (ending with 'Builder') and Record-Type"
}
}