Skip to content

Christophe Keller

Adventures in Softwareland

  • Software
    • C#
    • Java
    • Python
  • Webmastering
  • Media
    • Music
    • Pictures
  • Misc
  • Resumee
  • About Me
  • Contact Me

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

Leave a Comment / C# / By Administrator

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# – Linq To Sql – Handle a Transaction Deadlock

C# / By Christophe

When using Linq To SQL, here’s the pattern I use to retry an operation after it failed because a deadlock occurred in a SQL Database: while (true) { try { using (var scope = new TransactionScope()) { using (var db = new MyDataContext()) { // Do what you need to do on the DB… db.SubmitChanges(); …

C# – Linq To Sql – Handle a Transaction Deadlock Read More »

C# – Linq to Sql – Reattach and Update an entity

C# / By Christophe

If you’d listen to Microsoft, you’d believe than in Linq to SQL, you can’t reattach a changed entity to a new DataContext and submit the changed entity to the database. Well this isn’t true. It can be done with a little bit of foresight. The first step is to make sure that the underlying table …

C# – Linq to Sql – Reattach and Update an entity Read More »

C# : How to Wrap Winword COM InterOp Methods

C# / By Christophe

If you have ever used the Microsoft Office COM Interop classes to automate Word (or any other Office Application), you know those methods often take a lot of parameters, which can be tedious. Note: This was written a while ago before .Net 4.0 was available. .Net 4.0 introduces the dynamic keyword which makes COM Interop …

C# : How to Wrap Winword COM InterOp Methods Read More »

Python Programming – Photo Web Gallery Generator

Python / By Christophe

Introduction After some time learning Python and tinkering with it, I decided that it was time to use it in a “real world” application. After some thinking, I came up with the idea to program a web gallery generator, which would not be a too big project to work on my spare time and would …

Python Programming – Photo Web Gallery Generator Read More »

Posts navigation
1 2 Next Page →

Follow Me

  • Facebook
  • LinkedIn
  • YouTube

Recent Posts

  • Microsoft C# Graph SDK: How to handle delta query and token for messages
  • C# – Linq To Sql – Handle a Transaction Deadlock
  • C# – Linq to Sql – Reattach and Update an entity
  • C# : How to Wrap Winword COM InterOp Methods
  • Python Programming – Photo Web Gallery Generator

Categories

  • Software (9)
    • C# (5)
    • Java (1)
    • Python (3)
Copyright © 2023 Christophe Keller | Powered by Astra WordPress Theme