private void _ExecuteCommand(out string sql, out DbLiteParameter[] paramters)
 {
     DeleteBuilder.EntityInfo = this.Context.EntityMaintenance.GetEntityInfo <T>();
     sql       = DeleteBuilder.ToSqlString();
     paramters = DeleteBuilder.Parameters == null ? null : DeleteBuilder.Parameters.ToArray();
     RestoreMapping();
     AutoRemoveDataCache();
     Before(sql);
 }
        public KeyValuePair <string, List <DbLiteParameter> > ToSql()
        {
            DeleteBuilder.EntityInfo = this.Context.EntityMaintenance.GetEntityInfo <T>();
            string sql       = DeleteBuilder.ToSqlString();
            var    paramters = DeleteBuilder.Parameters == null ? null : DeleteBuilder.Parameters.ToList();

            RestoreMapping();
            return(new KeyValuePair <string, List <DbLiteParameter> >(sql, paramters));
        }