protected override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { GenericSelectArgs args = new GenericSelectArgs(arguments) { }; var theResult = this.Owner.Select(args); return theResult; }
public virtual IEnumerable Select(GenericSelectArgs args) { args.AutoPage = this.AutoPage; args.AutoSort = this.AutoSort; if (this.ExecuteSelect != null) ExecuteSelect(this, args); else OnExecuteSelect(args); return DataSource = args.DataSource; }
public virtual void OnExecuteSelect(GenericSelectArgs a) { if (ExecuteSelect != null) ExecuteSelect(this, a); else if (!this.DisableSelect) throw new NotImplementedException(string.Format(@"ExecuteSelect Handler for the GenericDataSource '{0}' is not implemented. Set DisableSelect=True -for Insert only scenarios-, else implement the Select Handler", this.ID)); }
public override void OnExecuteSelect(GenericSelectArgs a) { a.SetData(Roles.GetAllRoles()); }