Database updates

This commit is contained in:
Andre Beging
2022-04-04 15:15:03 +02:00
parent 427b924759
commit 83fb4a3c5e
14 changed files with 584 additions and 117 deletions

View File

@@ -1,15 +1,23 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using FoodsharingSiegen.Shared.Helper;
namespace FoodsharingSiegen.Contracts.Entity
{
public partial class User
{
[NotMapped]
public string Password
{
get => AuthHelper.Decrypt(EncryptedPassword);
set => EncryptedPassword = AuthHelper.Encrypt(value);
}
}
}