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);
        }
Beispiel #4
0
 public static void SetAssociationType(
     this ForeignKeyBuilder fk,
     System.Data.Entity.Core.Metadata.Edm.AssociationType associationType)
 {
     fk.GetMetadataProperties().SetAnnotation("AssociationType", (object)associationType);
 }
Beispiel #5
0
 public static void SetIsSplitConstraint(this ForeignKeyBuilder fk)
 {
     fk.GetMetadataProperties().SetAnnotation("IsSplitConstraint", (object)true);
 }
Beispiel #6
0
 public static void SetPreferredName(this ForeignKeyBuilder fk, string name)
 {
     fk.GetMetadataProperties().SetAnnotation("PreferredName", (object)name);
 }