///<summary> ///Get object by Id. ///</summary> public static DO_APIS_Info.UO_APIS_Info GetObjectById(System.Int32 Id) { DO_APIS_Info da = new DO_APIS_Info(); DO_APIS_Info.UOList_APIS_Info l = da.GetList(GetConditionsById(Id)); return(l.Count > 0 ? l[0] : null); }
///<summary> ///Get object by primary key string. ///</summary> public static DO_APIS_Info.UO_APIS_Info GetObjectByPrimaryKeyString(string primaryKeyString) { DO_APIS_Info da = new DO_APIS_Info(); DO_APIS_Info.UOList_APIS_Info l = da.GetList(GetConditionsByPrimaryKeyString(primaryKeyString)); return(l.Count > 0 ? l[0] : null); }