/// <summary> /// 获取实体 /// </summary> /// <param name="strWhere">参数化查询条件(例如: and Name = @Name )</param> /// <param name="dict">参数的名/值集合</param> /// <returns></returns> public virtual DeliverLogEntity GetEntity(string strWhere, Dictionary <string, object> dict = null) { DeliverLogEntity obj = null; string strSQL = "select top 1 * from DeliverLog where 1=1 " + strWhere; using (NullableDataReader reader = _DB.GetDataReader(strSQL, dict)) { if (reader.Read()) { obj = GetEntityFromrdr(reader); } } return(obj); }