Skip to content

Conversation

bastianeicher
Copy link
Contributor

This adds support for LINQ queries like:

var result = myTable
    .Where(x => x.Id == "abc")
    .Select(x => new {WriteTime = CqlFunction.WriteTime(x.MyColumn)})
    .Execute();

They will be transformed to CQL like this:

SELECT WRITETIME(MyColumn) FROM my_table;

@joao-r-reis
Copy link
Collaborator

Hi, thanks for your contribution. Have you signed our CLA?

@bastianeicher
Copy link
Contributor Author

Hi, thanks for your contribution. Have you signed our CLA?

Yes. :)

@joao-r-reis joao-r-reis merged commit facca46 into datastax:master Dec 19, 2022
@joao-r-reis joao-r-reis mentioned this pull request Dec 19, 2022
@joao-r-reis joao-r-reis changed the title LINQ support for writetime() function CSHARP-986 LINQ support for writetime() function Dec 20, 2022
@joao-r-reis joao-r-reis added this to the 3.19.0 milestone Dec 20, 2022
@joao-r-reis
Copy link
Collaborator

justfyi: C# Driver 3.19.0 is now GA (which includes this feature)

@bastianeicher
Copy link
Contributor Author

Hello @joao-r-reis,

thank you very much for merging and releasing this change so swiftly! :)

Unfortunately, I overlooked something and chose the wrong return type for the new method. :( I've created a follow-up PR to fix this: #581

joao-r-reis added a commit that referenced this pull request Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants