实体框架4.1动态检索从数据库表列描述标属性摘要 [英] Entity Framework 4.1 dynamically retrieve summary for scalar properties from database table column description
问题描述
我使用实体框架4.1数据库优先方法。我有每个表列说明旧的数据库。当你看在数据库图表的说明这是非常有用的。
I'm using Entity-Framework 4.1 database-first approach. I have a legacy database which every table column has description. It's very helpful when you watch those description in database diagram.
在同一实体框架的DataContext
有一个摘要
属性为每个标量值。
At the same Entity Framework DataContext
has a Summary
property for each scalar value.
我不知道有什么办法,我可以从数据库中加载这些描述,并将它们映射到摘要
标量属性?
I'm wondering is there any way I could load those descriptions from the database and map them to the Summary
of scalar properties ?
我将不胜感激的任何指示。
I would appreciate any directions
推荐答案
看看< A HREF =http://stackoverflow.com/q/2747788/337294>我怎样才能让实体数据模型设计器使用我的数据库列说明?,投票在的 https://connect.microsoft.com/的VisualStudio /反馈/信息/ 498313 /检索最SQL的描述 - 在实体框架 [见更新],或者如果你是在赶时间,买在<一个第三方工具HREF =http://huagati.com/dbmltools/相对=nofollow> http://huagati.com/dbmltools/ 。
更新:刚刚发现ADO.Net团队已经标记功能,因为将不修复
中的他们的反馈中心。但发现了一个工具,做在 http://eftsqldocgenerator.codeplex.com/ 的工作。还没有,虽然进行了测试。
Update: Just found out that ADO.Net team has marked the feature as Won't fix
in Their feedback center. But found a tool that does the work at http://eftsqldocgenerator.codeplex.com/. Haven't tested it though.
这篇关于实体框架4.1动态检索从数据库表列描述标属性摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!