Пример #1
0
        public int Delete(object id)
        {
            var entity = MasterSet.Find(id);

            if (entity != null)
            {
                return(Delete(entity));
            }

            return(0);
        }
Пример #2
0
 /// <summary>
 /// 联合主键查询
 /// </summary>
 /// <param name="keyValues"></param>
 /// <returns></returns>
 public TEntity Find(params object[] keyValues)
 {
     return(MasterSet.Find(keyValues));
 }