本文整理汇总了C#中IConfigurationService.QueryByDomain方法的典型用法代码示例。如果您正苦于以下问题:C# IConfigurationService.QueryByDomain方法的具体用法?C# IConfigurationService.QueryByDomain怎么用?C# IConfigurationService.QueryByDomain使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IConfigurationService
的用法示例。
在下文中一共展示了IConfigurationService.QueryByDomain方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConfigSettingViewModel
public ConfigSettingViewModel(IConfigurationService dataService, IMessenger messenger)
: base(messenger)
{
_DataService = dataService;
configsTable = new Hashtable();
List<Config> basicConfigList = new List<Config>();
List<Config> dishConfigList = new List<Config>();
List<Config> cashierConfigList = new List<Config>();
List<Config> billConfigList = new List<Config>();
List<Config> billTotalConfigList = new List<Config>();
List<Config> kitchenPrintConfigList = new List<Config>();
basicConfigList = _DataService.QueryByDomain("BasicConfig");
dishConfigList = _DataService.QueryByDomain("DishConfig");
cashierConfigList = _DataService.QueryByDomain("CashierConfig");
billConfigList = _DataService.QueryByDomain("BillConfig");
billTotalConfigList = _DataService.QueryByDomain("BillTotalConfig");
kitchenPrintConfigList = _DataService.QueryByDomain("KitchenPrintConfig");
BasicConfig basicConfig = new BasicConfig();
DishConfig dishConfig = new DishConfig();
CashierConfig cashierConfig = new CashierConfig();
BillConfig billConfig = new BillConfig();
BillTotalConfig billTotalConfig = new BillTotalConfig();
KitchenPrintConfig kitchenPrintConfig = new KitchenPrintConfig();
try
{
_BasicConfig = basicConfig.QueryBasicConfig(basicConfigList);
_DishConfig = dishConfig.QueryDishConfig(dishConfigList);
_CashierConfig = cashierConfig.QueryCashierConfig(cashierConfigList);
_BillConfig = billConfig.QueryBillConfig(billConfigList);
_BillTotalConfig = billTotalConfig.QueryBillTotalConfig(billTotalConfigList);
_KitchenPrintConfig = kitchenPrintConfig.QueryKitchenPrintConfig(kitchenPrintConfigList);
}
catch (Exception ex)
{
ex.ToString();
}
}