private bool LoadByPrimaryKeyDynamic(System.Int16 id)
        {
            EmailTemplateQuery query = new EmailTemplateQuery();

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

            if (!query.es2.HasConnection)
            {
                query.es2.Connection = ((IEntityCollection)this).Connection;
            }
        }
 public bool Load(EmailTemplateQuery query)
 {
     this.query = query;
     InitQuery(this.query);
     return(Query.Load());
 }