C#

Microsoft C# Graph SDK: How to handle delta query and token for messages

So I spent two days finding out how to handle delta queries for messages in Microsoft Graph with the C# SDK. The handling of the delta token can be confusing and is not that well documented by Microsoft. I have found an example of delta queries for Users, but it assumes that you can save […]

Microsoft C# Graph SDK: How to handle delta query and token for messages Read More »

C#: Use verbatim strings for SQL queries

Using verbatim strings for SQL queries can make your code much more readable. For example, which one of the following queries is easier to read? This one? string query = @” SELECT User.FirstName, User.LastName, User.Age, User.Gender, User.HairColor, Adress.Street, Adresse.Zip, Adress.City, Adress.Country FROM User INNER JOIN Adress ON User.AdressId = Adress.Id SORT BY User.FirstName, User.LastName “;

C#: Use verbatim strings for SQL queries Read More »