///<summary> ///Get object by Id. ///</summary> public static DO_Keywords.UO_Keywords GetObjectById(System.Int64 Id) { DO_Keywords da = new DO_Keywords(); DO_Keywords.UOList_Keywords l = da.GetList(GetConditionsById(Id)); return(l.Count > 0 ? l[0] : null); }
///<summary> ///Get object by primary key string. ///</summary> public static DO_Keywords.UO_Keywords GetObjectByPrimaryKeyString(string primaryKeyString) { DO_Keywords da = new DO_Keywords(); DO_Keywords.UOList_Keywords l = da.GetList(GetConditionsByPrimaryKeyString(primaryKeyString)); return(l.Count > 0 ? l[0] : null); }
///<summary> ///Get object by primary key. ///</summary> public static DO_Keywords.UO_Keywords GetObject(System.Int32 id) { DO_Keywords da = new DO_Keywords(); DO_Keywords.UOList_Keywords l = da.GetList(GetConditionsByPrimaryKey(id)); 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_Keywords da = new DO_Keywords(); return(da.Delete(connection, transaction, GetConditionsByPrimaryKeyString(primaryKeyString))); }
///<summary> ///Delete object by primary key string. ///</summary> public static int DeleteByPrimaryKeyString(string primaryKeyString) { DO_Keywords da = new DO_Keywords(); return(da.Delete(GetConditionsByPrimaryKeyString(primaryKeyString))); }
///<summary> ///Delete object by primary key(with transation). ///</summary> public static int Delete(System.Int64 Id, IDbConnection connection, IDbTransaction transaction) { DO_Keywords da = new DO_Keywords(); return(da.Delete(connection, transaction, GetConditionsByPrimaryKey(Id))); }
///<summary> ///Delete object by primary key. ///</summary> public static int Delete(System.Int64 Id) { DO_Keywords da = new DO_Keywords(); return(da.Delete(GetConditionsByPrimaryKey(Id))); }
///<summary> ///Get records count. ///</summary> public static int GetRecordsCount(DO_Keywords.UO_Keywords parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary <DO_Keywords.Columns, TokenTypes> extTokens) { DO_Keywords da = new DO_Keywords(); return(da.GetRecordsCount(GetConditionsByObject(parameterObj, isAnd, tokenTypes, extTokens))); }
///<summary> ///Get all records count. ///</summary> public static int GetAllRecordsCount() { DO_Keywords da = new DO_Keywords(); return(da.GetRecordsCount()); }
///<summary> ///Get all records. ///</summary> public static DO_Keywords.UOList_Keywords GetAllList() { DO_Keywords da = new DO_Keywords(); return(da.GetAllList()); }