当前位置: 首页>>代码示例>>C#>>正文


C# CommandProcessorContext.AddIntegrityCheck方法代码示例

本文整理汇总了C#中Microsoft.Data.Entity.Design.Model.Commands.CommandProcessorContext.AddIntegrityCheck方法的典型用法代码示例。如果您正苦于以下问题:C# CommandProcessorContext.AddIntegrityCheck方法的具体用法?C# CommandProcessorContext.AddIntegrityCheck怎么用?C# CommandProcessorContext.AddIntegrityCheck使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Microsoft.Data.Entity.Design.Model.Commands.CommandProcessorContext的用法示例。


在下文中一共展示了CommandProcessorContext.AddIntegrityCheck方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddRule

 internal static void AddRule(CommandProcessorContext cpc, ConceptualEntityType element)
 {
     if (element != null)
     {
         IIntegrityCheck check = new PropagateViewKeysToStorageModel(cpc, element);
         cpc.AddIntegrityCheck(check);
     }
 }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:8,代码来源:PropagateViewKeysToStorageModel.cs

示例2: 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);
                }
            }
        }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:21,代码来源:CheckArtifactBindings.cs

示例3: AddRule

 internal static void AddRule(CommandProcessorContext cpc, EntitySetMapping element)
 {
     if (element != null)
     {
         IIntegrityCheck check = new EnforceEntitySetMappingRules(cpc, element);
         cpc.AddIntegrityCheck(check);
     }
 }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:8,代码来源:enforceentitysetmappingrules.cs

示例4: AddRule

        /// <summary>
        ///     This method will add an InferReferentialContraints IntegrityCheck for the passed in
        ///     association.
        /// </summary>
        /// <param name="cpc"></param>
        /// <param name="association">This is only valid for C-Side associations.</param>
        internal static void AddRule(CommandProcessorContext cpc, Association association)
        {
            Debug.Assert(association != null, "association should not be null");
            Debug.Assert(association.EntityModel.IsCSDL, "association should be from C-side");
            Debug.Assert(
                association.AssociationEnds().Count == 2,
                "association.AssociationEnds().Count(" + association.AssociationEnds().Count + ") should be 2");
            Debug.Assert(association.AssociationSet != null, "association.AssociationSet should not be null");

            IIntegrityCheck check = new InferReferentialConstraints(cpc, association);
            cpc.AddIntegrityCheck(check);
        }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:18,代码来源:InferReferentialContraints.cs

示例5: AddRule

 // add one PropagateConceptualSGPToStorageProperty for each StorageProperty mapped to this ConceptualProperty
 internal static void AddRule(CommandProcessorContext cpc, ConceptualProperty cProp, bool propagateNoneSGP)
 {
     if (null != cProp)
     {
         foreach (var sProp in MappedStorageProperties(cProp))
         {
             IIntegrityCheck check = new PropagateStoreGeneratedPatternToStorageModel(cpc, sProp, propagateNoneSGP);
             cpc.AddIntegrityCheck(check);
         }
     }
 }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:12,代码来源:PropagateStoreGeneratedPatternToStorageModel.cs

示例6: AddRule

        internal static void AddRule(CommandProcessorContext cpc, AssociationSetMapping associationSetMapping)
        {
            Debug.Assert(associationSetMapping != null, "associationSetMapping should not be null");

            IIntegrityCheck check = new EnforceAssociationSetMappingRules(cpc, associationSetMapping);
            cpc.AddIntegrityCheck(check);
        }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:7,代码来源:enforceassociationsetmappingrules.cs


注:本文中的Microsoft.Data.Entity.Design.Model.Commands.CommandProcessorContext.AddIntegrityCheck方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。