Skip to content

new Join attribute usage #33

@adamfoneil

Description

@adamfoneil

I have this situation where I have an optional join. Today I have to use two properties like this:

[Where("[a].[Id]=@appointmentId")]
public int? AppointmentId { get; set; }

[Join("INNER JOIN [dbo].[Appointment] [a] ON [p].[Id]=[a].[PatientId]")]
public bool? IncludeAppointments { get; set; }

I'd like to write this with one property like this:

[Where("[a].[Id]=@appointmentId")]
[Join("INNER JOIN [dbo].[Appointment] [a] ON [p].[Id]=[a].[PatientId]")]
public int? AppointmentId { get; set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions