示例#1
0
 public static AccountOwner ToAccountOwner(this AccountOwnerDto accountOwnerDto) =>
 new AccountOwner()
 {
     Email     = accountOwnerDto.Email,
     FirstName = accountOwnerDto.FirstName,
     LastName  = accountOwnerDto.LastName
 };
示例#2
0
 public static AccountOwner ToOrmOwner(this AccountOwnerDto accountOwnerDto)
 {
     return(new AccountOwner
     {
         Id = accountOwnerDto.Id,
         FirstName = accountOwnerDto.FirstName,
         LastName = accountOwnerDto.LastName
     });
 }
示例#3
0
 public void Update(AccountOwnerDto accountOwnerDto)
 {
 }
示例#4
0
 public void Create(AccountOwnerDto accountOwnerDto)
 {
     context.Set <AccountOwner>()
     .Add(accountOwnerDto.ToOrmOwner());
 }