Example #1
0
        private bool LoadByPrimaryKeyDynamic(System.String code)
        {
            CurrencyQuery query = new CurrencyQuery();

            query.Where(query.Code == code);
            return(this.Load(query));
        }
Example #2
0
        protected void InitQuery(CurrencyQuery query)
        {
            query.OnLoadDelegate = this.OnQueryLoaded;

            if (!query.es2.HasConnection)
            {
                query.es2.Connection = ((IEntityCollection)this).Connection;
            }
        }
        public static IEnumerable <Currency> All()
        {
            var q = new CurrencyQuery();

            q.OrderBy(q.Code.Ascending);

            var coll = new CurrencyCollection();

            coll.Load(q);

            return(coll);
        }
Example #4
0
 public bool Load(CurrencyQuery query)
 {
     this.query = query;
     InitQuery(this.query);
     return(Query.Load());
 }