When adding or updating entity graphs, is there a way to suppress loading associated entities before executing the INSERT or UPDATE statements?
For example, I have the following entity:
var customer = new CustomerDto()
{
Name = "test person",
CustomerType = (CustomerType)cboCustomerTypes.SelectedItem
}
In the above case, the CustomerDto only has the navigation property but the model has both the foreign key and navigation property. Because in the above case the user selected an existing CustomerType, it is not necessary to load the CustomerType again before saving the customer.
When adding or updating entity graphs, is there a way to suppress loading associated entities before executing the INSERT or UPDATE statements?
For example, I have the following entity:
In the above case, the CustomerDto only has the navigation property but the model has both the foreign key and navigation property. Because in the above case the user selected an existing CustomerType, it is not necessary to load the CustomerType again before saving the customer.
Is it possible?