Skip to content

Conflicting return types in sample code #1574

Closed

Description

@zturchan

This example code:

static MigrationBuilder CreateUser(
this MigrationBuilder migrationBuilder,
string name,
string password)
=> migrationBuilder.Sql($"CREATE USER {name} WITH PASSWORD '{password}';");

Does not appear to work, as migrationBuilder.Sql returns an OperationBuilder, which appears to be incompatible with the MigrationBuilder return type.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. added this to the Backlog milestone on Sep 2, 2019
  2. modified the milestones: Backlog, 3.1.0 on Sep 6, 2019
  3. added
    good first issue
    on Jan 15, 2020
  4. ajcvickers commented on Jan 15, 2020

    @ajcvickers
    Contributor

    @bricelam Did we miss triaging this issue this morning? Is 3.1 correct?

  5. bricelam commented on Jan 17, 2020

    @bricelam
    Contributor

    3.1 is fine. It's a very small change

  6. modified the milestones: 3.1.0, 5.0.0 on Mar 19, 2020
  7. added 2 commits that reference this issue on Oct 27, 2020
    ee417b2
    41f3772
  8. added 5 commits that reference this issue on Oct 28, 2020
    793307d
    040b9a3
    b00355e
    993c565
    f0f6905
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-migrationsclosed-fixedgood first issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions