I have a function in SQL that returns a number. This function is called some_number.
I also have a DbSet<Table>:
class Table {
public string Name { get; set; }
}
Now i want to give the Table a property that is a placeholder for a function call:
class Table {
public string Name { get; set; }
public SqlFunction<string> some_number { get; set; }
}
If i now query a row in the table, every some_number column is the result of the some_number function in sql.
Is something like that possible? Maybe with some additional linq? Help appreciated.