Skip to content

Query Context Property = NULL is not working as (IS NULL) #8

Closed

Description

@mikependon

var queryContext = new { StartDateTimeUtc = (object)null };
repository.Query(queryContext);

I should expect a "SELECT ... WHERE StartDateTimeUtc IS NULL;"

Activity

  1. mikependon commented on Jul 5, 2018

    @mikependon
    OwnerAuthor

    //var context = new
    //{
    // WindFarmId = windFarm.Id,
    // StartTimeUtc = new { Operation = Operation.LessThanOrEqual, endTimeUtc },
    // EndTimeUtc = new
    // {
    // Operation = Operation.Any,
    // Value = new[]
    // {
    // new {Operation = Operation.Equal, Value = (object) null}, // RepoDb is not allowing NULL here, will enable this scenario in beta3
    // new {Operation = Operation.GreaterThanOrEqual, Value = (object) startTimeUtc}
    // }
    // }
    //};

  2. mikependon commented on Jul 6, 2018

    @mikependon
    OwnerAuthor

    Solved at v1.2.0-beta3

  3. self-assigned this
    on Aug 4, 2018
  4. added
    bug
    deployed
    on Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdeployed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions