Beispiel #1
0
 /// <summary>
 ///     Inserts the <see cref="IKaguyaUnique{T}" /> object into the database, assuming it doesn't already exist.
 ///     If it exists, this will replace it via the PrimaryKey.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="arg"></param>
 /// <returns></returns>
 public static async Task InsertOrReplaceAsync <T>(T arg) where T : class, IKaguyaQueryable <T>, IKaguyaUnique <T>
 {
     using (var db = new KaguyaDb())
         await db.InsertOrReplaceAsync(arg);
 }