AndriySvyryd

user stats

Member SinceJanuary 13, 2012
Last VisitJanuary 28, 2015

Contact

developer for

Entity Framework

AndriySvyryd

personal statement

No personal statement has been written.

activity stream

January 12, 2015 - Entity Framework: Commented work item: TPT problem with hiding base class property in inherited class

January 12, 2015 - Entity Framework: Modified work item: TPT problem with hiding base class property in inherited class

January 12, 2015 - Entity Framework: Pushed 4a4875cee72cb6755f5eb0a8d180d87a211acdd3, Fix for #2616: TPT problem with hiding base class property in inherited class Problem: The fix for #2087 exposed an issue with mapping hidden properties. Previously it worked if the base type was mapped as this caused EF to ignore the new property on the derived type. However if the base type is ignored an exception was thrown when trying to add both the hidden and the new property to the same C-space type. Solution: Choose only one property to map. If the base type is not mapped then the new property will be mapped. If the base type is mapped then the hidden property will be mapped to allow for other derived types that don't hide the property to be mapped correctly. When designing a type that hides a property it is best to use the same backing field for both properties if possible as this will behave as if both properties were mapped in both cases. Note that if the hidden property is mapped proxy creation should be disabled for it unless both properties share the same backing field and the new property can be assigned an instance of the hidden property type.

January 12, 2015 - Entity Framework: Pushed 15 commits

January 9, 2015 - Entity Framework: Committed 4a4875cee72cb6755f5eb0a8d180d87a211acdd3, Fix for #2616: TPT problem with hiding base class property in inherited class Problem: The fix for #2087 exposed an issue with mapping hidden properties. Previously it worked if the base type was mapped as this caused EF to ignore the new property on the derived type. However if the base type is ignored an exception was thrown when trying to add both the hidden and the new property to the same C-space type. Solution: Choose only one property to map. If the base type is not mapped then the new property will be mapped. If the base type is mapped then the hidden property will be mapped to allow for other derived types that don't hide the property to be mapped correctly. When designing a type that hides a property it is best to use the same backing field for both properties if possible as this will behave as if both properties were mapped in both cases. Note that if the hidden property is mapped proxy creation should be disabled for it unless both properties share the same backing field and the new property can be assigned an instance of the hidden property type.

January 9, 2015 - Entity Framework: Committed 4a4875cee72cb6755f5eb0a8d180d87a211acdd3, Fix for #2616: TPT problem with hiding base class property in inherited class Problem: The fix for #2087 exposed an issue with mapping hidden properties. Previously it worked if the base type was mapped as this caused EF to ignore the new property on the derived type. However if the base type is ignored an exception was thrown when trying to add both the hidden and the new property to the same C-space type. Solution: Choose only one property to map. If the base type is not mapped then the new property will be mapped. If the base type is mapped then the hidden property will be mapped to allow for other derived types that don't hide the property to be mapped correctly. When designing a type that hides a property it is best to use the same backing field for both properties if possible as this will behave as if both properties were mapped in both cases. Note that if the hidden property is mapped proxy creation should be disabled for it unless both properties share the same backing field and the new property can be assigned an instance of the hidden property type.

January 9, 2015 - Entity Framework: Committed 4a4875cee72cb6755f5eb0a8d180d87a211acdd3, Fix for #2616: TPT problem with hiding base class property in inherited class Problem: The fix for #2087 exposed an issue with mapping hidden properties. Previously it worked if the base type was mapped as this caused EF to ignore the new property on the derived type. However if the base type is ignored an exception was thrown when trying to add both the hidden and the new property to the same C-space type. Solution: Choose only one property to map. If the base type is not mapped then the new property will be mapped. If the base type is mapped then the hidden property will be mapped to allow for other derived types that don't hide the property to be mapped correctly. When designing a type that hides a property it is best to use the same backing field for both properties if possible as this will behave as if both properties were mapped in both cases. Note that if the hidden property is mapped proxy creation should be disabled for it unless both properties share the same backing field and the new property can be assigned an instance of the hidden property type.

January 9, 2015 - Entity Framework: Committed 4a4875cee72cb6755f5eb0a8d180d87a211acdd3, Fix for #2616: TPT problem with hiding base class property in inherited class Problem: The fix for #2087 exposed an issue with mapping hidden properties. Previously it worked if the base type was mapped as this caused EF to ignore the new property on the derived type. However if the base type is ignored an exception was thrown when trying to add both the hidden and the new property to the same C-space type. Solution: Choose only one property to map. If the base type is not mapped then the new property will be mapped. If the base type is mapped then the hidden property will be mapped to allow for other derived types that don't hide the property to be mapped correctly. When designing a type that hides a property it is best to use the same backing field for both properties if possible as this will behave as if both properties were mapped in both cases. Note that if the hidden property is mapped proxy creation should be disabled for it unless both properties share the same backing field and the new property can be assigned an instance of the hidden property type.

January 9, 2015 - Entity Framework: Created work item: Proxy type doesn't always work if hidden property is mapped

January 7, 2015 - Entity Framework: Modified work item: TPT problem with hiding base class property in inherited class

projects i'm following

No projects being followed.

forks

Entity Framework: EFBatching