Skip to content

Possibility to parse an Expression<T, bool> to a valid expression string  #133

@frankiDotNet

Description

@frankiDotNet

Hello,

is it possible to parse into the other direction?
Let's say I have an expression like:

public class Person
{
  public String Name { get; set; }
  public String FirstName { get; set; }
  public DateTime Birthday { get; set; }
}

Expression<Func<Person, bool>> filterExpression= x => x.Birthday > new DateTime(2001, 1, 1);

I would like to have something like this as result:

"x => x.Birthday > '2007-08-31'"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions