Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-3823

ContosO: add support for FromSqlRaw

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • None
    • None
    • library
    • 0

    Description

      Exaample:

      string query = "SELECT * FROM Department WHERE DepartmentID = {0}";
                  var department = await _context.Departments
                      .FromSqlRaw(query, id)
                      .Include(d => d.Administrator)
                      .AsNoTracking()
                      .FirstOrDefaultAsync();
      

      Generates invalid SQL++ query:

      SELECT `c`.`departmentid`, `c`.`budget`, `c`.`instructorid`, `c`.`name`, `c`.`rowversion`, `c`.`startdate`
      FROM (
          SELECT * FROM Department WHERE DepartmentID = $p0
      ) AS `c`
      LIMIT 1
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty