chore: 调整 LCQuery 与 LCQuery<T> 的关系
parent
8de256993a
commit
fb5c0754b2
|
@ -8,13 +8,9 @@ using LeanCloud.Storage.Internal.Query;
|
|||
using LeanCloud.Storage.Internal.Object;
|
||||
|
||||
namespace LeanCloud.Storage {
|
||||
/// <summary>
|
||||
/// 查询类
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class LCQuery<T> where T : LCObject {
|
||||
public class LCQuery {
|
||||
public string ClassName {
|
||||
get; private set;
|
||||
get; internal set;
|
||||
}
|
||||
|
||||
public LCCompositionalCondition Condition {
|
||||
|
@ -26,6 +22,25 @@ namespace LeanCloud.Storage {
|
|||
Condition = new LCCompositionalCondition();
|
||||
}
|
||||
|
||||
internal Dictionary<string, object> BuildParams() {
|
||||
return Condition.BuildParams();
|
||||
}
|
||||
|
||||
internal string BuildWhere() {
|
||||
return Condition.BuildWhere();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询类
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class LCQuery<T> : LCQuery where T : LCObject {
|
||||
public LCQuery(string className) :
|
||||
base(className) {
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 等于
|
||||
/// </summary>
|
||||
|
@ -421,13 +436,5 @@ namespace LeanCloud.Storage {
|
|||
compositionQuery.ClassName = className;
|
||||
return compositionQuery;
|
||||
}
|
||||
|
||||
Dictionary<string, object> BuildParams() {
|
||||
return Condition.BuildParams();
|
||||
}
|
||||
|
||||
internal string BuildWhere() {
|
||||
return Condition.BuildWhere();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue