///<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); }
///<summary> ///Delete object by primary key string(with transation). ///</summary> public static int DeleteByPrimaryKeyString(string primaryKeyString, IDbConnection connection, IDbTransaction transaction) { DO_ErrorDescrption da = new DO_ErrorDescrption(); return(da.Delete(connection, transaction, GetConditionsByPrimaryKeyString(primaryKeyString))); }
///<summary> ///Delete object by primary key string. ///</summary> public static int DeleteByPrimaryKeyString(string primaryKeyString) { DO_ErrorDescrption da = new DO_ErrorDescrption(); return(da.Delete(GetConditionsByPrimaryKeyString(primaryKeyString))); }
///<summary> ///Delete object by primary key(with transation). ///</summary> public static int Delete(System.String Code, IDbConnection connection, IDbTransaction transaction) { DO_ErrorDescrption da = new DO_ErrorDescrption(); return(da.Delete(connection, transaction, GetConditionsByPrimaryKey(Code))); }
///<summary> ///Delete object by primary key. ///</summary> public static int Delete(System.String Code) { DO_ErrorDescrption da = new DO_ErrorDescrption(); return(da.Delete(GetConditionsByPrimaryKey(Code))); }
///<summary> ///Get records count. ///</summary> public static int GetRecordsCount(DO_ErrorDescrption.UO_ErrorDescrption parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary <DO_ErrorDescrption.Columns, TokenTypes> extTokens) { DO_ErrorDescrption da = new DO_ErrorDescrption(); return(da.GetRecordsCount(GetConditionsByObject(parameterObj, isAnd, tokenTypes, extTokens))); }
///<summary> ///Get all records count. ///</summary> public static int GetAllRecordsCount() { DO_ErrorDescrption da = new DO_ErrorDescrption(); return(da.GetRecordsCount()); }
///<summary> ///Get all records. ///</summary> public static DO_ErrorDescrption.UOList_ErrorDescrption GetAllList() { DO_ErrorDescrption da = new DO_ErrorDescrption(); return(da.GetAllList()); }