protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var criteria = new BehaviorCriteria(); dsBehaviors.Criteria = criteria.AddSortBy(criteria.Behavior_id, false); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var endpointCriteria = new EndpointCriteria(); dsEndpoints.Criteria = endpointCriteria.AddSortBy(endpointCriteria.Endpoint_id, false); var bindingCriteria = new BindingCriteria(); dsBindings.Criteria = bindingCriteria.AddSortBy(bindingCriteria.Binding_id, false); var behaviorCriteria = new BehaviorCriteria(); dsEndpointBehaviors.Criteria = behaviorCriteria.AddSortBy(behaviorCriteria.Behavior_id, false).And(behaviorCriteria.BehaviorCategory_id == (int)BehaviorCategory.Endpoint); var farmCriteria = new FarmCriteria(); dsFarms.Criteria = farmCriteria.AddSortBy(farmCriteria.Farm_id, false); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var appCriteria = new AppCriteria(); dsApps.Criteria = appCriteria.AddSortBy(appCriteria.AppCode, false); var envCriteria = new EnvironmentCriteria(); dsEnvironments.Criteria = envCriteria.AddSortBy(envCriteria.Environment_id, false); var serviceCategoryCriteria = new ServiceCategoryCriteria(); dsServiceCategories.Criteria = serviceCategoryCriteria.AddSortBy(serviceCategoryCriteria.ServiceCategory_id, false); var behaviorCriteria = new BehaviorCriteria(); dsServiceBehaviors.Criteria = behaviorCriteria.AddSortBy(behaviorCriteria.Behavior_id, false).And(behaviorCriteria.BehaviorCategory_id == (int)BehaviorCategory.Service); var serviceHostTypeCriteria = new ServiceHostTypeCriteria(); dsServiceHostTypes.Criteria = serviceHostTypeCriteria.AddSortBy(serviceHostTypeCriteria.ServiceHostType_id, false); } }