private bool LoadByPrimaryKeyDynamic(System.Guid id)
        {
            PaymentTransactionQuery query = new PaymentTransactionQuery();

            query.Where(query.Id == id);
            return(this.Load(query));
        }
        protected void InitQuery(PaymentTransactionQuery query)
        {
            query.OnLoadDelegate = this.OnQueryLoaded;

            if (!query.es2.HasConnection)
            {
                query.es2.Connection = ((IEntityCollection)this).Connection;
            }
        }
Пример #3
0
        public static PaymentTransaction GetMostRecentByTransactionId(string gatewayTransactionId)
        {
            PaymentTransactionQuery q = new PaymentTransactionQuery();

            q.es.Top = 1;
            q.Where(q.GatewayTransactionId == gatewayTransactionId);
            q.OrderBy(q.CreatedOn.Descending);

            PaymentTransaction transaction = new PaymentTransaction();

            if (transaction.Load(q))
            {
                return(transaction);
            }
            return(null);
        }
 public bool Load(PaymentTransactionQuery query)
 {
     this.query = query;
     InitQuery(this.query);
     return(Query.Load());
 }