Exemplo n.º 1
0
        public static CreditAllocationEntity Map(this Allocation allocation)
        {
            var entity = new CreditAllocationEntity {
                id = allocation.Id
            };

            allocation.MapTo(entity);
            return(entity);
        }
Exemplo n.º 2
0
 public static void MapTo(this Allocation allocation, CreditAllocationEntity entity)
 {
     entity.ownerId         = allocation.OwnerId;
     entity.creditId        = allocation.CreditId;
     entity.initialQuantity = allocation.InitialQuantity;
     entity.quantity        = allocation.RemainingQuantity;
     entity.createdTime     = allocation.CreatedTime;
     entity.expiryDate      = allocation.ExpiryDate;
     entity.deallocatedTime = allocation.DeallocatedTime;
     entity.referenceId     = allocation.ReferenceId;
 }
Exemplo n.º 3
0
 public static Allocation Map(this CreditAllocationEntity entity)
 {
     return(new Allocation
     {
         Id = entity.id,
         OwnerId = entity.ownerId,
         CreditId = entity.creditId,
         InitialQuantity = entity.initialQuantity,
         RemainingQuantity = entity.quantity,
         CreatedTime = entity.createdTime,
         ExpiryDate = entity.expiryDate,
         DeallocatedTime = entity.deallocatedTime,
         ReferenceId = entity.referenceId,
     });
 }
Exemplo n.º 4
0
 partial void DeleteCreditAllocationEntity(CreditAllocationEntity instance);
Exemplo n.º 5
0
 partial void UpdateCreditAllocationEntity(CreditAllocationEntity instance);
Exemplo n.º 6
0
 partial void InsertCreditAllocationEntity(CreditAllocationEntity instance);
Exemplo n.º 7
0
 private void detach_CreditAllocationEntities(CreditAllocationEntity entity)
 {
     this.SendPropertyChanging();
     entity.CreditEntity = null;
 }