当前位置: 首页>>代码示例>>C#>>正文


C# IConfigurationService.QueryByDomain方法代码示例

本文整理汇总了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();
     }
 }
开发者ID:huangxuanheng,项目名称:ChooseDishes,代码行数:37,代码来源:ConfigSettingViewModel.cs


注:本文中的IConfigurationService.QueryByDomain方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。