public virtual int Reset(Net.Vpc.Upa.Entity entity, Net.Vpc.Upa.Persistence.EntityExecutionContext context) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { if (entity.GetShield().IsTransient()) { return(0); } Net.Vpc.Upa.Expressions.Delete stmt = (new Net.Vpc.Upa.Expressions.Delete()).From(entity.GetName()); return(context.GetPersistenceStore().CreateQuery(stmt, context).ExecuteNonQuery()); }
public virtual int Delete(Net.Vpc.Upa.Entity entity, Net.Vpc.Upa.Persistence.EntityExecutionContext context, Net.Vpc.Upa.Expressions.Expression condition, bool recurse, Net.Vpc.Upa.RemoveTrace deleteInfo) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { if (entity.GetShield().IsTransient()) { return(0); } Net.Vpc.Upa.Expressions.Delete stmt = (new Net.Vpc.Upa.Expressions.Delete()).From(entity.GetName()).Where(condition); return(context.GetPersistenceStore().CreateQuery(stmt, context).ExecuteNonQuery()); }
public virtual Net.Vpc.Upa.Expressions.Delete AddQuery(Net.Vpc.Upa.Expressions.Delete other) { if (other == null) { return(this); } if (other.entity != null) { entity = (Net.Vpc.Upa.Expressions.EntityName)other.entity.Copy(); } if (other.entityAlias != null) { entityAlias = other.entityAlias; } other.condition = condition.Copy(); return(this); }
public virtual Net.Vpc.Upa.Query CreateQuery(Net.Vpc.Upa.Entity e, Net.Vpc.Upa.Expressions.Delete query, Net.Vpc.Upa.Persistence.EntityExecutionContext context) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { return(context.GetPersistenceStore().CreateQuery(e, query, context)); }
protected internal virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledDelete CompileDelete(Net.Vpc.Upa.Expressions.Delete v, Net.Vpc.Upa.Impl.Uql.ExpressionTranslationManager manager, Net.Vpc.Upa.Impl.Uql.ExpressionDeclarationList declarations) { if (v == null) { return(null); } Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledDelete s = new Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledDelete(); s.From(v.GetEntity().GetName()); s.Where(manager.TranslateAny(v.GetCondition(), declarations)); return(s); }
public Delete(Net.Vpc.Upa.Expressions.Delete other) : this() { AddQuery(other); }
public override Net.Vpc.Upa.Expressions.Expression Copy() { Net.Vpc.Upa.Expressions.Delete o = new Net.Vpc.Upa.Expressions.Delete(); o.AddQuery(this); return(o); }
public virtual Net.Vpc.Upa.Query CreateQuery(Net.Vpc.Upa.Entity e, Net.Vpc.Upa.Expressions.Delete query, Net.Vpc.Upa.Persistence.EntityExecutionContext context) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { throw new System.Exception("Not supported yet."); }