gpt4 book ai didi

.net - 如何找出.NET 4中 Entity Framework 中的字段最大长度?

转载 作者:行者123 更新时间:2023-12-01 17:29:00 25 4
gpt4 key购买 nike

根据this问题是,EF v1 中没有内置方法来计算字段的长度。 .NET 4 附带的 Entity Framework 中是否有内置的方法可以做到这一点,如果有的话 - 如何实现?

最佳答案

EF 4.0 中没有新的方法来访问属性的长度。您仍然需要遍历元数据 - 如图所示 in the accepted answer on the question you reference .

关于.net - 如何找出.NET 4中 Entity Framework 中的字段最大长度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2545505/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com