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