Given an instance of EdmType, how do I get the database schema of the corresponding table?
I could find a property for the table name (of course), but nothing for the schema.
I looked 开发者_C百科at the properties and meta data. Nothing.
Am I missing something?
EdmType
doesn't contain such information. You need instance of EntitySet
from System.Data.Metadata.Edm
namespace and search its MetadataProperties
collection for MetadataItem
with Name == "Schema"
. The Value
property of this item will contain database schema.
精彩评论