public override bool Insert(ref Customer entity, SuccessfulInvocationDelegate successfulInvocation, FailedInvocationDelegate failedInvocation) { _internalData.Add(entity.Number, entity); Hashtable results = new Hashtable { { SUCCESS_DESCRIPTION, string.Format("{0}", entity.Number) } }; successfulInvocation(entity, results); return(true); }
public abstract bool Delete(ref IDomainObject entity, SuccessfulInvocationDelegate successfulInvocation, FailedInvocationDelegate failedInvocation);
public abstract bool Delete(ref TEntity entity, SuccessfulInvocationDelegate successfulInvocation, FailedInvocationDelegate failedInvocation);
public bool Delete(ref IDomainObject entity, SuccessfulInvocationDelegate successfulInvocation, FailedInvocationDelegate failedInvocation) { TEntity instance = (TEntity)entity; SetSafeSuccessfulInvocator(ref successfulInvocation); SetSafeFailureInvocator(ref failedInvocation); return(Delete(ref instance, successfulInvocation, failedInvocation)); }
public override bool Delete(ref AccountReceivable entity, SuccessfulInvocationDelegate successfulInvocation, FailedInvocationDelegate failedInvocation) { throw new NotImplementedException(); }