///
/// 关系类
///
namespace LeanCloud.Storage {
public class LCRelation where T : LCObject {
///
/// 字段名
///
public string Key {
get; set;
}
///
/// 父对象
///
public LCObject Parent {
get; set;
}
///
/// 关联类型名
///
public string TargetClass {
get; set;
}
public LCRelation() {
}
///
/// 获取 Relation 的查询对象
///
public LCQuery Query {
get {
LCQuery query = new LCQuery(TargetClass);
query.WhereRelatedTo(Parent, Key);
return query;
}
}
}
}