You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using Autofac;
|
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
|
using HybirdFrameworkEntity.DbModel;
|
|
|
|
|
using HybirdFrameworkServices.System;
|
|
|
|
|
using log4net;
|
|
|
|
|
|
|
|
|
|
namespace WpfStarter
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for MainWindow.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class MainWindow : Window
|
|
|
|
|
{
|
|
|
|
|
private static readonly ILog Log = LogManager.GetLogger(typeof(MainWindow));
|
|
|
|
|
|
|
|
|
|
private SysUserServices _sysUserServices;
|
|
|
|
|
|
|
|
|
|
public MainWindow()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
_sysUserServices = AppInfo.Container.Resolve<SysUserServices>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void TestClick(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
List<sysUser> sysUsers = _sysUserServices.Query();
|
|
|
|
|
MessageBox.Show($"count={sysUsers.Count}");
|
|
|
|
|
Log.Info($"count={sysUsers.Count}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|