Vladimir Khorikov

Results 265 comments of Vladimir Khorikov

Hi, thanks for the invitation, @webdevilopers If I understood correctly from the conversation, you suggest creating sub-classes to keep domain classes clean, smth like this: `ClassWithPersistenceConcerns extends CleanDomainClass`. IMO, that's...

@webdevilopers Yes, the concept of events and event listeners is the same in Hibernate and NHibernate. The code looks good to me. I don't have experience in PHP, though, so...

Unfortunately, there's no way to do so at the moment. I'm marking this is a a protentional enhancement, feel free to submit a PR.

Looks good, publishing this fix with v2.18.0

@hankovich Regarding the discussion about `Error`, my current plan is to implement it like this: https://github.com/vkhorikov/CSharpFunctionalExtensions/issues/321#issuecomment-966245392 Could you review and comment on any issues you see with it? @xavierjohn Sorry,...

@xavierjohn I was going to go with my usual `Envelope` actually :) Why do you prefer the ProblemDetails?

You just need to update the Envelope to follow the standard. You can check how to combine data annotations with a custom envelope here: https://enterprisecraftsmanship.com/posts/combining-asp-net-core-attributes-with-value-objects/

> I wonder if we can add an optional 'Field' property to the error object so that the ApplicationBase class can generically process the entire ErrorList to the RFC7807 format....

> How does it break domain model encapsulation? The ctor is still private so the Create method has to be called. Create method will assign the properties and call validate....

@xavierjohn Was out of town during the holidays. I don't quite like this approach because it breaks the separation of concerns between domain modeling (the VOs) and application-specific validation (the...