parent
85b4b39237
commit
5dd63e8c67
|
@ -5,7 +5,7 @@
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:CeramicProjectTool"
|
xmlns:local="clr-namespace:CeramicProjectTool"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="MainWindow" Height="500" Width="800" MinHeight="500" MinWidth="800" Loaded="Window_Loaded">
|
Title="MainWindow" Height="600" Width="900" MinHeight="600" MinWidth="900" Loaded="Window_Loaded">
|
||||||
<Grid>
|
<Grid>
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<ToolBar DockPanel.Dock="Top" Height="30">
|
<ToolBar DockPanel.Dock="Top" Height="30">
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace CeramicProjectTool.Util
|
||||||
}
|
}
|
||||||
public static async Task<List<PermissonModel>> GetPermissonsByModule(string moduleName)
|
public static async Task<List<PermissonModel>> GetPermissonsByModule(string moduleName)
|
||||||
{
|
{
|
||||||
var result = await _db.Queryable<PermissonModel>().Where(x => x.ModuleName == moduleName).ToListAsync();
|
var result = await _db.Queryable<PermissonModel>().Where(x => x.ModuleName.Contains(moduleName)).ToListAsync();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue