本文整理汇总了C#中Microsoft.Data.Entity.Design.Model.Commands.CommandProcessorContext.AddBindingForRebind方法的典型用法代码示例。如果您正苦于以下问题:C# CommandProcessorContext.AddBindingForRebind方法的具体用法?C# CommandProcessorContext.AddBindingForRebind怎么用?C# CommandProcessorContext.AddBindingForRebind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Data.Entity.Design.Model.Commands.CommandProcessorContext
的用法示例。
在下文中一共展示了CommandProcessorContext.AddBindingForRebind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScheduleBindingsForRebind
/// <summary>
/// Schedule the given set of bindings for rebinding when the transaction completes
/// </summary>
/// <param name="cpc"></param>
/// <param name="bindingsToRebind"></param>
internal static void ScheduleBindingsForRebind(CommandProcessorContext cpc, ICollection<ItemBinding> bindingsToRebind)
{
Debug.Assert(cpc != null);
Debug.Assert(bindingsToRebind != null);
if (bindingsToRebind.Count > 0)
{
var check = new CheckArtifactBindings(cpc);
cpc.AddIntegrityCheck(check);
foreach (var ib in bindingsToRebind)
{
cpc.AddBindingForRebind(ib);
}
}
}