-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webapi marten example DRAFT #2076
base: master
Are you sure you want to change the base?
Webapi marten example DRAFT #2076
Conversation
Added dummy GreetingsController Included sln update missed in last commit
Configured Brighter on startup
Created a basic endpoint so it can be used for Marten integration check
…g in the future Added Marten package and established a simple connection; added fake data to document store Added docker-compose-postgres with the pgadmin
…into webapi_marten_example
Updated the GreetingEntityGateway & Startup
Minor refactoring
Updated program class
…into webapi_marten_example # Conflicts: # Brighter.sln
Minor cleanup
…into webapi_marten_example
Added event and handler for GreetingMade request
It seems I should do rebase or squash before even creating the PR so the commit history won't be so messy. |
public class Person | ||
{ | ||
public int Id { get; set; } | ||
public ICollection<Greeting> Greetings { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case I would like to use private setters here so I can follow some DDD/OOP practices; do I have to use reflection somehow so Marten can work with serialization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how Martin works with serialization, you can try doing private setters and create via constructor and see if it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this one helped https://martendb.io/v3/documentation/documents/json/newtonsoft
Don't work you can always clean up your commits later |
…into webapi_marten_example
Added nonpublic fileds serialization for marten.
…into webapi_marten_example # Conflicts: # Brighter.sln
OmelianLevkovych seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This is draft pull request to get earlier opinions, thoughts whether I am going into the right direction.
Currently, only the published (GreetingsAPI) is almost completed.
Still luck RMQ setup, outbox patterun support, consumer, migration to net6