コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }