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

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 02.04.2022 16:05:26
// Code is generated on: 04.04.2022 13:38:25
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -37,6 +37,10 @@ namespace FoodsharingSiegen.Contracts.Entity
public virtual Guid ProspectId { get; set; }
public virtual bool NotNeeded { get; set; }
public virtual DateTime Created { get; set; }
public virtual User User { get; set; }
public virtual Prospect Prospect { get; set; }

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 02.04.2022 16:05:26
// Code is generated on: 04.04.2022 13:38:25
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 02.04.2022 16:05:26
// Code is generated on: 04.04.2022 13:38:25
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 02.04.2022 16:05:26
// Code is generated on: 04.04.2022 13:38:25
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.

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);
}
}
}

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 02.04.2022 16:05:26
// Code is generated on: 04.04.2022 13:38:25
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.