如果我有这样的课程:
- 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; }
- }