0
ajayak created
I want to detach a nested entity to avoid automatic db insertions. Here is sample code:
foreach (var refund in order.Refunds)
{
context.Entry(refund).State = EntityState.Detached;
}
How I get context in DomainServiceBase class?