如果我有这样的课程:
public class Facet : TableServiceEntity { public Guid ParentId { get; set; } public string Name { get; set; } public string Uri{ get; set; } public Facet Parent { get; set; } }
父项源自ParentId Guid,该关系旨在由我的存储库填充.那么我怎么告诉Azure离开这个领域呢?是否有某种类型的Ignore属性,或者是否必须创建一个继承类来提供这些关系?
使用最新的
Microsoft.WindowsAzure.Storage SDK(v6.2.0及更高版本),属性名称已更改为IgnorePropertyAttribute:
public class MyEntity : TableEntity { public string MyProperty { get; set; } [IgnoreProperty] public string MyIgnoredProperty { get; set; } }
原文地址:https://www.jb51.cc/windows/371390.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。