src/Inflatable/Sessions/Commands/SaveCommand.cs
/// <summary>
/// Updates the specified update object.
/// </summary>
/// <param name="updateObject">The update object.</param>
/// <param name="source">The source.</param>
/// <param name="batch">The batch.</param>
Updates the specified update object.
Updates the specified update object .
private void Update(object updateObject, IMappingSource source, SQLHelper batch)
        {
            var Generator = QueryProviderManager.CreateGenerator(updateObject.GetType(), source);
            var Queries = Generator.GenerateQueries(QueryType.Update, updateObject);
            for (int x = 0, QueriesLength = Queries.Length; x < QueriesLength; x++)
            {
                var TempQuery = Queries[x];
                batch.AddQuery(TempQuery.DatabaseCommandType, TempQuery.QueryString, TempQuery.Parameters!);
            }
        }
private void Update ( object updateObject , IMappingSource source , SQLHelper batch ) { var Generator = QueryProviderManager . CreateGenerator ( updateObject . GetType ( ) , source ) ; var Queries = Generator . GenerateQueries ( QueryType . Update , updateObject ) ; for ( int x = 0 , QueriesLength = Queries . Length ; x < QueriesLength ; x ++ ) { var TempQuery = Queries [ x ] ; batch . AddQuery ( TempQuery . DatabaseCommandType , TempQuery . QueryString , TempQuery . Parameters ! ) ; } }
Updates the specified update object.
Updates the specified update object .
updateObject
object
The update object.
The update object .
source
IMappingSource
None
batch
SQLHelper
None