I have this code which is working fine and I update a value if exists or insert if not With this code I manage to do the work with only one query to the SQL, but I was wondering if there is an easier or more elegant way to do it. For example if I could use linq and lambda
Tag: lambda
MySql Trigger for notification
In a table in MySql database, I have a boolean column with ‘Yes’ and ‘No’ for appointment confirmation. As soon as appointment gets ‘Yes’, a notification is sent via an AWS Lambda call. I want to send a 12 hour prior notification before the day of the appointment. What is t…
How to get average value using LEFT JOIN in LINQ and Lambda
I want to display each book average rating with its publisher using LINQ and Lambda. Here’s my book list private List Books = new List(){ new Book { Id: 1, Name: Book A, …
How do I get a space in my property name?
I have the following query: The problem is that I make the property ProjeAdı in the Select clause. I want the property to match the sql column, Proje Adı (note the space). How can I do that? Answer aliases cant have spaces between them , just like any variable name cant have white space, they are considered a…