Refactored repository pattern for Add and Update methods so that they return their respective entity objects

This commit is contained in:
Shaun Walker
2019-08-05 09:31:04 -04:00
parent b9c007998e
commit 4fda7b17d0
43 changed files with 353 additions and 137 deletions

View File

@ -0,0 +1,17 @@
using System;
namespace Oqtane.Models
{
public class SiteUser : IAuditable
{
public int SiteUserId { get; set; }
public int SiteId { get; set; }
public int UserId { get; set; }
public bool IsAuthorized { get; set; }
public string CreatedBy { get; set; }
public DateTime CreatedOn { get; set; }
public string ModifiedBy { get; set; }
public DateTime ModifiedOn { get; set; }
}
}

View File

@ -10,6 +10,8 @@ namespace Oqtane.Models
public string Roles { get; set; }
public bool IsSuperUser { get; set; }
[NotMapped]
public int SiteId { get; set; }
[NotMapped]
public string Password { get; set; }
[NotMapped]