src/Inflatable/Sessions/Commands/DeleteCommand.cs
/// <summary>
/// Deletes the joins if it needs to.
/// </summary>
/// <param name="object">The object.</param>
/// <param name="source">The source.</param>
/// <param name="batch">The batch.</param>
/// <param name="ManyToManyProperty">The many to many property.</param>
/// <param name="ManyToManyValueList">The many to many value list.</param>
Deletes the joins if it needs to.
Deletes the joins if it needs to .
private void DeleteJoins(object @object, IMappingSource source, SQLHelper batch, IManyToManyProperty ManyToManyProperty, IList ManyToManyValueList)
        {
            if (ManyToManyProperty.DatabaseJoinsCascade)
            {
                return;
            }
            ManyToManyValueList.Clear();
            var LinksGenerator = QueryProviderManager.CreateGenerator(ManyToManyProperty.ParentMapping.ObjectType, source);
            var TempQueries = LinksGenerator.GenerateQueries(QueryType.JoinsDelete, @object, ManyToManyProperty);
            for (int x = 0, TempQueriesLength = TempQueries.Length; x < TempQueriesLength; ++x)
            {
                var TempQuery = TempQueries[x];
                batch.AddQuery(TempQuery.DatabaseCommandType, TempQuery.QueryString, TempQuery.Parameters!);
            }
        }
private void DeleteJoins ( object @object , IMappingSource source , SQLHelper batch , IManyToManyProperty ManyToManyProperty , IList ManyToManyValueList ) { if ( ManyToManyProperty . DatabaseJoinsCascade ) { return ; } ManyToManyValueList . Clear ( ) ; var LinksGenerator = QueryProviderManager . CreateGenerator ( ManyToManyProperty . ParentMapping . ObjectType , source ) ; var TempQueries = LinksGenerator . GenerateQueries ( QueryType . JoinsDelete , @object , ManyToManyProperty ) ; for ( int x = 0 , TempQueriesLength = TempQueries . Length ; x < TempQueriesLength ; ++ x ) { var TempQuery = TempQueries [ x ] ; batch . AddQuery ( TempQuery . DatabaseCommandType , TempQuery . QueryString , TempQuery . Parameters ! ) ; } }
Deletes the joins if it needs to.
Deletes the joins if it needs to .
@object
object
source
IMappingSource
None
batch
SQLHelper
None
ManyToManyProperty
IManyToManyProperty
The many to many property.
The many to many property .
ManyToManyValueList
IList
The many to many value list.
The many to many value list .
object
None