///<summary> ///Get object by primary key string. ///</summary> public static DO_ErrorDescrption.UO_ErrorDescrption GetObjectByPrimaryKeyString(string primaryKeyString) { DO_ErrorDescrption da = new DO_ErrorDescrption(); DO_ErrorDescrption.UOList_ErrorDescrption l = da.GetList(GetConditionsByPrimaryKeyString(primaryKeyString)); return(l.Count > 0 ? l[0] : null); }
///<summary> ///Get object by primary key. ///</summary> public static DO_ErrorDescrption.UO_ErrorDescrption GetObject(System.String Code) { DO_ErrorDescrption da = new DO_ErrorDescrption(); DO_ErrorDescrption.UOList_ErrorDescrption l = da.GetList(GetConditionsByPrimaryKey(Code)); return(l.Count > 0 ? l[0] : null); }