I am still learning C# .NET libraries how do I handle the following case. If anyone can guide me in the right directions it will be highly appreciated.
You can't assign a null value to a non-nullable value. One way to fix this is to add your default (non-null) value using ??.
e.g.
MovementDate = livestockWeightDocket.MovementDate ?? DateTimeOffset.MinValue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With