目前我们正在使用检查约束来实现业务规则,但我想知道是否应该在SQL或业务逻辑层(C#)中实现业务规则.我在网上搜索过,发现检查约束很好用.
如果有人知道有关它的详细信息,请告诉我.还有一件事是,可以使用移动应用程序以及使用Web应用程序将数据泵入我的数据库.
有一个"网站集搜索结果页面"字段,用于配置用于上下文搜索的搜索结果页面(例如"本网站").通过执行以下操作可以找到它:
默认值为
/_layouts/osssearchresults.aspx
Run Code Online (Sandbox Code Playgroud)
如何通过SharePoint对象模型检索和更改此值?
是否有一个查询可以获得磁盘上FILESTREAM文件夹中文件的总文件大小?
现在我正在使用LyncClient.ContactManager.BeginSearch方法来查找联系人.但是,我无法弄清楚如何获得所有联系人.我已经尝试将"*"和"%"作为外卡字符传递但是没有用.现在这是我的函数调用.
_lyncClient.ContactManager.BeginSearch("*", SearchProviders.GlobalAddressList, SearchFields.DisplayName, SearchOptions.ContactsOnly, 400, SearchCallback, "Searching Contacts");
Run Code Online (Sandbox Code Playgroud) 我正在基于Sharepoint制作问题跟踪门户.用户应该能够添加条目,但在条目本身中我希望一列只对特定用户组(管理员)可见.有没有办法设置基于列的访问控制?
我在一个SharePoint页面上有7个报表查看器webpart.加载所有这些都需要很长时间.如果我直接打开RDL,报告会在2秒内加载.如果我只加载一个报表查看器Web部件,那么Web部件加载速度也非常快.
如何减少加载时间?
为延迟加载,AJAX调用等创建的所有UpdatePanel都会导致部分问题.禁用ViewState不是一个选项,因为它会破坏Web部件.
我想知道如何让DataGridComboBoxColumn在未处于编辑模式时显示所选项目文本?还有可能使编辑模式中的组合框最初显示所选项目文本吗?
这是我的XAML:
<DataGridComboBoxColumn Header="Formatter"
SelectedItemBinding="{Binding Path=Format}">
<DataGridComboBoxColumn.ElementStyle>
<Style TargetType="">
<Setter Property="Text" Value="{Binding Path=FormatView.Name}" />
</Style>
</DataGridComboBoxColumn.ElementStyle>
<DataGridComboBoxColumn.EditingElementStyle>
<Style TargetType="ComboBox">
<Setter Property="ItemsSource" Value="{Binding Path=DefinedFormatters}" />
<Setter Property="IsDropDownOpen" Value="True" />
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding Path=Name}"></TextBlock>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</DataGridComboBoxColumn.EditingElementStyle>
</DataGridComboBoxColumn>
Run Code Online (Sandbox Code Playgroud) 背景:
我已经使用UserPrincipal.GetAuthorizationGroups了一段时间来检查2个不同应用程序的权限.他们已经好几年了.最近一些用户已经收到标题(System.DirectoryServices.AccountManagement.PrincipalOperationException)中提到的错误,而其他用户没有.我怀疑它可能与在Windows Server 2012上运行的新域控制器有关,因为问题在添加后的第二天就开始了.完整错误如下:
例外:
System.DirectoryServices.AccountManagement.PrincipalOperationException:枚举组时发生错误(1301).该组的SID无法解决.
在System.DirectoryServices.AccountManagement.SidList.TranslateSids(String target,IntPtr [] pSids)at System.DirectoryServices.AccountManagement.SidList..ctor(SID_AND_ATTR [] sidAndAttr)
at System.DirectoryServices.AccountManagement.AuthZSet..ctor(Byte [] userSid,NetCred credentials,ContextOptions contextOptions,String flatUserAuthority,StoreCtx userStoreCtx,Object userCtxBase)
在System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ ... p)
在System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroups
题:
我该如何解决?
c# ×5
sharepoint ×3
sql-server ×2
.net ×1
.net-4.0 ×1
boolean ×1
constraints ×1
datagrid ×1
filestream ×1
lync ×1
lync-2010 ×1
sql ×1
wpf ×1