feat!: convert projects to .net 5 wip

This commit is contained in:
2021-06-28 18:59:25 -04:00
parent d89739016a
commit a953521992
12 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using Microsoft.Azure.Cosmos.Table;
using System;
using System.Collections.Generic;
using System.Text;
namespace Habittodo.Model
{
public class TodoHabitLink : TableEntity
{
public TodoHabitLink() { }
public TodoHabitLink(string userId, string todoistId, string habiticaId, string todoistParentId = null)
{
PartitionKey = userId;
RowKey = todoistId;
TodoistParentId = todoistParentId;
HabiticaId = habiticaId;
}
public string TodoistParentId { get; set; }
public string HabiticaId { get; set; }
public HabitTodoLink Reverse(string habiticaParentId = null)
{
return new HabitTodoLink(PartitionKey, HabiticaId, RowKey, habiticaParentId);
}
}
}