In a ASP.net mvc 2 project is there a way to set the default MergeOption to PreserveChanges for all entity types?
Currently i have a massive sub that sets all entity types mergeOption.
Thanks
In a ASP.net mvc 2 project is there a way to set the default MergeOption to PreserveChanges for all entity types?
Currently i have a massive sub that sets all entity types mergeOption.
Thanks
I also need to know how to do this. However from my research I agree with Garry English.
To avoid a large routine and have a maintenance free method of setting every entity sets MergeOption have a look at this: Way to automate setting of MergeOptions
From what I have read, this cannot be set at design time and can only be set at runtime. Here is a post that shows different ways to set MergeOption: