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); }
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); }