/// <summary> /// Update the specified field that matches the Where expression with the new data value /// </summary> /// <param name="select">The field to update</param> /// <param name="where">The expression that determines the records selected</param> /// <param name="newValue">The new value to set the specified field in all matching records</param> /// <param name="connectionString">The database connection string</param> /// <returns>The number of records affected</returns> public static int UpdateData <TSource>(Expression <Func <Gravitybox.Datastore.EFDAL.DeleteQueueItemQuery, TSource> > select, Expression <Func <Gravitybox.Datastore.EFDAL.DeleteQueueItemQuery, bool> > where, Gravitybox.Datastore.EFDAL.Entity.DeleteQueueItem newValue, string connectionString) { return(BusinessObjectQuery <Gravitybox.Datastore.EFDAL.Entity.DeleteQueueItem, Gravitybox.Datastore.EFDAL.DeleteQueueItemQuery, TSource> .UpdateData(select : select, where : where, newValue : newValue, leafTable : "DeleteQueueItem", getField : GetDatabaseFieldName, hasModifyAudit : false, connectionString : connectionString)); }
/// <summary> /// Update the specified field that matches the Where expression with the new data value /// </summary> /// <param name="select">The field to update</param> /// <param name="where">The expression that determines the records selected</param> /// <param name="newValue">The new value to set the specified field in all matching records</param> /// <param name="connection">An open database connection</param> /// <param name="transaction">The database connection transaction</param> /// <returns>The number of records affected</returns> public static int UpdateData <TSource>(Expression <Func <Gravitybox.Datastore.EFDAL.DeleteQueueItemQuery, TSource> > select, Expression <Func <Gravitybox.Datastore.EFDAL.DeleteQueueItemQuery, bool> > where, TSource newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction) { return(BusinessObjectQuery <Gravitybox.Datastore.EFDAL.Entity.DeleteQueueItem, Gravitybox.Datastore.EFDAL.DeleteQueueItemQuery, TSource> .UpdateData(select : select, where : where, newValue : newValue, leafTable : "DeleteQueueItem", getField : GetDatabaseFieldName, hasModifyAudit : false, startup : null, connection : connection, transaction : transaction)); }
/// <summary> /// Update the specified field that matches the Where expression with the new data value /// </summary> /// <param name="select">The field to update</param> /// <param name="where">The expression that determines the records selected</param> /// <param name="newValue">The new value to set the specified field in all matching records</param> /// <returns>The number of records affected</returns> public static int UpdateData <TSource>(Expression <Func <Gravitybox.Datastore.EFDAL.LockValueQuery, TSource> > select, Expression <Func <Gravitybox.Datastore.EFDAL.LockValueQuery, bool> > where, Gravitybox.Datastore.EFDAL.Entity.LockValue newValue) { return(BusinessObjectQuery <Gravitybox.Datastore.EFDAL.Entity.LockValue, Gravitybox.Datastore.EFDAL.LockValueQuery, TSource> .UpdateData(select : select, where : where, newValue : newValue, leafTable : "Lock", getField : GetDatabaseFieldName, hasModifyAudit : false)); }
/// <summary> /// Update the specified field that matches the Where expression with the new data value /// </summary> /// <param name="select">The field to update</param> /// <param name="where">The expression that determines the records selected</param> /// <param name="newValue">The new value to set the specified field in all matching records</param> /// <param name="connectionString">The database connection string</param> /// <returns>The number of records affected</returns> public static int UpdateData <TSource>(Expression <Func <Gravitybox.GeoLocation.EFDAL.CanadaPostalCodeQuery, TSource> > select, Expression <Func <Gravitybox.GeoLocation.EFDAL.CanadaPostalCodeQuery, bool> > where, Gravitybox.GeoLocation.EFDAL.Entity.CanadaPostalCode newValue, string connectionString) { return(BusinessObjectQuery <Gravitybox.GeoLocation.EFDAL.Entity.CanadaPostalCode, Gravitybox.GeoLocation.EFDAL.CanadaPostalCodeQuery, TSource> .UpdateData(select : select, where : where, newValue : newValue, leafTable : "CanadaPostalCode", getField : GetDatabaseFieldName, hasModifyAudit : false, connectionString : connectionString)); }
/// <summary> /// Update the specified field that matches the Where expression with the new data value /// </summary> /// <param name="select">The field to update</param> /// <param name="where">The expression that determines the records selected</param> /// <param name="newValue">The new value to set the specified field in all matching records</param> /// <param name="startup">A configuration object</param> /// <param name="connectionString">The database connection string</param> /// <returns>The number of records affected</returns> public static int UpdateData <TSource>(Expression <Func <Gravitybox.Datastore.EFDAL.ServerQuery, TSource> > select, Expression <Func <Gravitybox.Datastore.EFDAL.ServerQuery, bool> > where, TSource newValue, ContextStartup startup, string connectionString) { return(BusinessObjectQuery <Gravitybox.Datastore.EFDAL.Entity.Server, Gravitybox.Datastore.EFDAL.ServerQuery, TSource> .UpdateData(select : select, where : where, newValue : newValue, leafTable : "Server", getField : GetDatabaseFieldName, hasModifyAudit : true, startup : startup, connectionString : connectionString)); }