public static void SetAssociationType(
            this ForeignKeyBuilder fk, AssociationType associationType)
        {
            DebugCheck.NotNull(fk);
            DebugCheck.NotNull(associationType);

            fk.GetMetadataProperties().SetAnnotation(AssociationType, associationType);
        }
        public static void SetIsSplitConstraint(this ForeignKeyBuilder fk)
        {
            DebugCheck.NotNull(fk);

            fk.GetMetadataProperties().SetAnnotation(IsSplitConstraint, true);
        }
        public static void SetPreferredName(this ForeignKeyBuilder fk, string name)
        {
            DebugCheck.NotNull(fk);

            fk.GetMetadataProperties().SetAnnotation(PreferredNameAnnotation, name);
        }
Esempio n. 4
0
 public static void SetAssociationType(
     this ForeignKeyBuilder fk,
     System.Data.Entity.Core.Metadata.Edm.AssociationType associationType)
 {
     fk.GetMetadataProperties().SetAnnotation("AssociationType", (object)associationType);
 }
Esempio n. 5
0
 public static void SetIsSplitConstraint(this ForeignKeyBuilder fk)
 {
     fk.GetMetadataProperties().SetAnnotation("IsSplitConstraint", (object)true);
 }
Esempio n. 6
0
 public static void SetPreferredName(this ForeignKeyBuilder fk, string name)
 {
     fk.GetMetadataProperties().SetAnnotation("PreferredName", (object)name);
 }