public static KeyBuilder SharedNameExtension(this KeyBuilder builder, string value) { builder.Annotation("Annotation", value + ".Annotation"); builder.Metadata["Metadata"] = value + ".Metadata"; ((IAccessor <Model>)builder).Service["Model"] = value + ".Model"; return(builder); }
public static KeyBuilder KeyBuilderExtension(this KeyBuilder builder, string value) { builder.Annotation("Annotation", value + ".Annotation"); builder.Metadata["Metadata"] = value + ".Metadata"; builder.GetService <Model>()["Model"] = value + ".Model"; return(builder); }