Hello, I'm digging into ObjectContext.MetadataWorkspace.
everything is fine when I query the conceptual model via DataSpace.CSpace.
But I always receive an error when i query for the storage model via DataSpace.SSpace (exception says "System.InvalidOperationException: The space 'SSpace' has no associated collection").
Can you tell me something about this error?
Thanks
incomplete MetadataWorkspace?
When I want to enumerate all the types defined in the storage model I use the following query:
I always get an exception. If I use DataSpace.CSpace (for conceptual model) the query works fine.
Thanks
Code: Select all
var query =
from item in
context.MetadataWorkspace.GetItems(DataSpace.SSpace)
.Where(m => m.BuiltInTypeKind == BuiltInTypeKind.EntityType)
select item;
Thanks