DataPortal extension source generator #3681
Unanswered
StefanOssendorf
asked this question in
General
Replies: 1 comment
-
I love this conversation, I was going to start a discussion about code generation and Csla. In our team, we could use code generation in a number of places, we use stored procs and ADO.NET so data access could be generated entirely. Same goes for Csla business object properties and Data portal methods. Hopefully our developers will only write code that implements 'meaty' processes such as business rules, authorization rules etc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
I'd like to promote my new source generator for DataPortal extensions :)
You can find it here: DataPortal extension generator repo
It's a source gen which generates for each
Fetch
,Create
,Execute
andDelete
method a compile and type safe extension method.A short example would be:
The source generator will generate the following code (I removed some stuff for type clarification for easiere reading):
If you have any question feel free to open issues and ask your qestion :)
Have a nice day
Stefan
Beta Was this translation helpful? Give feedback.
All reactions