Пример #1
0
 ///<summary>
 ///Update object by primary key string(with transation).
 ///</summary>
 public static bool UpdateObjectByPrimaryKeyString(DO_APIS_Info.UO_APIS_Info obj, string primaryKeyString, IDbConnection connection, IDbTransaction transaction)
 {
     return(obj.Update(connection, transaction, GetConditionsByPrimaryKeyString(primaryKeyString)) > 0);
 }
Пример #2
0
 ///<summary>
 ///Update object by primary key(with transation).
 ///</summary>
 public static bool UpdateObject(DO_APIS_Info.UO_APIS_Info obj, System.Int32 Id, IDbConnection connection, IDbTransaction transaction)
 {
     return(obj.Update(connection, transaction, GetConditionsByPrimaryKey(Id)) > 0);
 }
Пример #3
0
 ///<summary>
 ///Update object by primary key string.
 ///</summary>
 public static bool UpdateObjectByPrimaryKeyString(DO_APIS_Info.UO_APIS_Info obj, string primaryKeyString)
 {
     return(obj.Update(GetConditionsByPrimaryKeyString(primaryKeyString)) > 0);
 }
Пример #4
0
 ///<summary>
 ///Update object by primary key.
 ///</summary>
 public static bool UpdateObject(DO_APIS_Info.UO_APIS_Info obj, System.Int32 Id)
 {
     return(obj.Update(GetConditionsByPrimaryKey(Id)) > 0);
 }