mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
修复因iframe造成的分页导航显示问题
This commit is contained in:
parent
f63159dc07
commit
068e6a4bac
@ -41,7 +41,7 @@ namespace OpenAuth.Domain.Interface
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 批量更新
|
/// 批量更新
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void Update(Expression<Func<T, bool>> exp, T entity);
|
void Update(Expression<Func<T, object>> exp, T entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 批量删除
|
/// 批量删除
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
paging: true,
|
paging: true,
|
||||||
filterMult: false,
|
filterMult: false,
|
||||||
showTfoot: false,
|
showTfoot: false,
|
||||||
height: '700'
|
height: '100%'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
@{
|
@{
|
||||||
Layout = "~/Views/Shared/_BjuiLayout.cshtml";
|
Layout = null;
|
||||||
}
|
}
|
||||||
@model IEnumerable<OpenAuth.Domain.ModuleElement>
|
@model IEnumerable<OpenAuth.Domain.ModuleElement>
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
paging: true,
|
paging: true,
|
||||||
filterMult: false,
|
filterMult: false,
|
||||||
showTfoot: false,
|
showTfoot: false,
|
||||||
height: '700'
|
height: '100%'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@
|
|||||||
paging: true,
|
paging: true,
|
||||||
filterMult: false,
|
filterMult: false,
|
||||||
showTfoot: false,
|
showTfoot: false,
|
||||||
height: '700'
|
height: '100%'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
paging: true,
|
paging: true,
|
||||||
filterMult: false,
|
filterMult: false,
|
||||||
showTfoot: false,
|
showTfoot: false,
|
||||||
height: '700'
|
height: '100%'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
paging: true,
|
paging: true,
|
||||||
filterMult: false,
|
filterMult: false,
|
||||||
showTfoot: false,
|
showTfoot: false,
|
||||||
height: '700'
|
height: '100%'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
paging: true,
|
paging: true,
|
||||||
filterMult: false,
|
filterMult: false,
|
||||||
showTfoot: false,
|
showTfoot: false,
|
||||||
height: '700'
|
height: '100%' //TODO:这种高度如果记录数较少的时候,看起有点怪,这个可以根据自己爱好修改
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,10 +75,12 @@ namespace OpenAuth.Repository
|
|||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update(Expression<Func<T, bool>> exp, T entity)
|
public void Update(Expression<Func<T, object>> identityExp, T entity)
|
||||||
{
|
{
|
||||||
//TODO: 暂时有问题,EntityFramework.Extension的Update必须有new操作
|
//TODO: 暂时有问题,EntityFramework.Extension的Update必须有new操作
|
||||||
Context.Set<T>().Where(exp).Update(u => entity);
|
// Context.Set<T>().Where(exp).Update(u => entity);
|
||||||
|
Context.Set<T>().AddOrUpdate(identityExp, entity);
|
||||||
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Delete(Expression<Func<T, bool>> exp)
|
public void Delete(Expression<Func<T, bool>> exp)
|
||||||
|
@ -76,7 +76,9 @@
|
|||||||
<Compile Include="TestOrgApp.cs" />
|
<Compile Include="TestOrgApp.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -117,7 +119,6 @@
|
|||||||
</Choose>
|
</Choose>
|
||||||
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
@ -51,13 +51,15 @@ namespace OpenAuth.UnitTest
|
|||||||
// module.CascadeId += module1.CascadeId;
|
// module.CascadeId += module1.CascadeId;
|
||||||
//}
|
//}
|
||||||
//moduleRep.Update(module);
|
//moduleRep.Update(module);
|
||||||
|
|
||||||
|
|
||||||
var module2 = new Module
|
moduleRep.Update(u =>u.Id, new Module
|
||||||
{
|
{
|
||||||
Id = 14,
|
Id = 15,
|
||||||
CascadeId = DateTime.Now.ToShortTimeString()
|
Name = "test",
|
||||||
};
|
CascadeId = DateTime.Now.ToShortTimeString(),
|
||||||
moduleRep.Update(module2);
|
Url = "ssss"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user