Closed AntonPaskrobka closed 3 years ago
I have a composite key in my database. How do I use the GetByIdAsync method?
@AntonPaskrobka You can get as follows:
var item = _repository.GetAsync<YourEntity>(e => e.FirstKey == keyValue1 && e.SecondKey == keyValue2);
It works great. Thanks
I have a composite key in my database. How do I use the GetByIdAsync method?