Fix 默认的增删改查实现有误
This commit is contained in:
parent
4084e01c31
commit
03d1345262
|
|
@ -85,8 +85,8 @@ public abstract class DefaultCurdRepo<T, K> : IRepo<T, K> where T : class, IData
|
|||
/// </summary>
|
||||
/// <param name="whereObj"></param>
|
||||
/// <returns></returns>
|
||||
public virtual List<K> WhereSearchId(T whereObj)
|
||||
public virtual List<string> WhereSearchId(T whereObj)
|
||||
{
|
||||
return _client.Queryable<T>().Where(whereObj.ToWhereExp()).Select(x => (K)Convert.ChangeType(x.ID, typeof(K))).ToList();
|
||||
return _client.Queryable<T>().Where(whereObj.ToWhereExp()).Select(x => x.ID).ToList();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,6 @@ public interface IRepo<T, K> where T : IDataModel
|
|||
/// </summary>
|
||||
/// <param name="whereObj"></param>
|
||||
/// <returns></returns>
|
||||
List<K> WhereSearchId(T whereObj);
|
||||
List<string> WhereSearchId(T whereObj);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue