mirror of
https://github.com/bitwarden/server
synced 2025-12-18 17:23:28 +00:00
Split out repositories to Infrastructure.Dapper / EntityFramework (#1759)
This commit is contained in:
17
src/Infrastructure.EntityFramework/Models/Policy.cs
Normal file
17
src/Infrastructure.EntityFramework/Models/Policy.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models
|
||||
{
|
||||
public class Policy : Core.Entities.Policy
|
||||
{
|
||||
public virtual Organization Organization { get; set; }
|
||||
}
|
||||
|
||||
public class PolicyMapperProfile : Profile
|
||||
{
|
||||
public PolicyMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.Policy, Policy>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user