コード例 #1
0
        public static TBuilder SharedNameExtension <TBuilder>(this IForeignKeyBuilder <TBuilder> builder, string value)
            where TBuilder : IForeignKeyBuilder <TBuilder>
        {
            builder.Annotation("Annotation", value + ".Annotation");
            builder.Metadata["Metadata"] = value + ".Metadata";
            builder.Model["Model"]       = value + ".Model";

            return((TBuilder)builder);
        }
コード例 #2
0
        public static TForeignKeyBuilder KeyName <TForeignKeyBuilder>(
            [NotNull] this IForeignKeyBuilder <TForeignKeyBuilder> builder,
            [NotNull] string keyName)
            where TForeignKeyBuilder : IForeignKeyBuilder <TForeignKeyBuilder>
        {
            Check.NotNull(builder, "builder");
            Check.NotEmpty(keyName, "keyName");

            builder.Annotation(Annotations.KeyName, keyName);

            return((TForeignKeyBuilder)builder);
        }