开发者

How can I get the database schema of a EdmType

开发者 https://www.devze.com 2023-03-12 03:26 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消