public static ReferenceReferenceBuilder SharedNameExtension(this ReferenceReferenceBuilder builder, string value) { builder.HasAnnotation("Annotation", value + ".Annotation"); builder.Metadata["Metadata"] = value + ".Metadata"; builder.GetInfrastructure <IMutableModel>()["Model"] = value + ".Model"; return(builder); }
public static ReferenceReferenceBuilder HasConstraintName( [NotNull] this ReferenceReferenceBuilder referenceReferenceBuilder, [CanBeNull] string name) { Check.NotNull(referenceReferenceBuilder, nameof(referenceReferenceBuilder)); Check.NullButNotEmpty(name, nameof(name)); referenceReferenceBuilder.GetInfrastructure <InternalRelationshipBuilder>().Relational(ConfigurationSource.Explicit).HasConstraintName(name); return(referenceReferenceBuilder); }