protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var envCriteria = new EnvironmentCriteria(); dsEnvironments.Criteria = envCriteria.AddSortBy(envCriteria.Environment_id, false); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var envCriteria = new EnvironmentCriteria(); dsEnvironments.Criteria = envCriteria.AddSortBy(envCriteria.Environment_id, false); var connStrCriteria = new ConnectionStringCriteria(); dsConnectionStrings.Criteria = connStrCriteria.AddSortBy(connStrCriteria.Name, false).AddSortBy(connStrCriteria.Environment_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); } }