缺少属性类的数据 [英] Missing data on property class
问题描述
我是这个班:
[DataContract]
[KnownType(typeof(DataRangeOWLProperty))]
[序列化]
公共课 OWLClass
{
[DataMember]
public Uri Id {得到;组; } [DataMember]
public List< OWLProperty>属性{get;组; } [DataMember]
public List< OWLClass > RelatedTypes {get;组;我把这个类放在缓存上。
我的缓存系统只有一个服务器。
有时我检索相同的项密钥从缓存中,属性"RelatedTypes"将不会检索(列表计数= 0)。
我确定我将项目与属性"RelatedTypes"相关联。有很多项目...
谢谢
Hi, i've this class :
[DataContract]
[KnownType(typeof(DataRangeOWLProperty))]
[Serializable]
public class OWLClass
{
[DataMember]
public Uri Id { get; set; }
[DataMember]
public List<OWLProperty> Properties { get; set; }
[DataMember]
public List<OWLClass> RelatedTypes { get; set; }
}
I put this class on a cache.
My cache system is only one server.
Sometime when i retrieve the same item key from the cache, the property "RelatedTypes" will not retrieve (List count=0).
I'm sure that i put the item with the property "RelatedTypes" that have much items...
Thanks
推荐答案
抱歉,我的代码有一个错误。
现在,没关系。
Sorry, but my code had a bug.
Now, it's ok.
这篇关于缺少属性类的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!