1

Closed

Edmx.Load does not correctly load named resource when multiple embedded resources exist

description

When trying to load a specific named csdl/ssdl/msl from an assembly with multiple resources (x.csdl, y.csdl etc), the correct resource is not loaded. It appears that the last occurrence of the specific resource type is loaded. It doesn't appear that there is any resource name filtering during the load process.
Closed Apr 3, 2010 at 2:13 PM by rbeauchamp
Fixed and validated via unit test FilterResourceByFileName_Issue12273().

comments

rbeauchamp wrote Mar 27, 2010 at 4:07 AM

The first reported bug. Cool! I'll look into it. Thanks.

wrote Mar 27, 2010 at 4:09 AM

tracstarr wrote Mar 27, 2010 at 11:35 AM

I did a quick fix by adding to your return tuple the name of the resource in the get embedded resource function. Then added a where clause that does a contains search for the returned resource name in the string passed in.

rbeauchamp wrote Mar 28, 2010 at 2:20 PM

OK. Sounds good. Thanks for the info.

rbeauchamp wrote Apr 3, 2010 at 2:13 PM

Fixed and validated via unit test FilterResourceByFileName_Issue12273().

wrote Apr 3, 2010 at 2:13 PM

wrote Feb 13, 2013 at 9:46 PM

wrote May 15, 2013 at 11:58 PM