24 lines
554 B
C#
24 lines
554 B
C#
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);
|
|
}
|
|
}
|
|
}
|