private bool LoadByPrimaryKeyDynamic(System.String code) { CurrencyQuery query = new CurrencyQuery(); query.Where(query.Code == code); return(this.Load(query)); }
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); }
public bool Load(CurrencyQuery query) { this.query = query; InitQuery(this.query); return(Query.Load()); }