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

            allocation.MapTo(entity);
            return(entity);
        }
Example #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;
 }
Example #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,
     });
 }
Example #4
0
 partial void DeleteCreditAllocationEntity(CreditAllocationEntity instance);
Example #5
0
 partial void UpdateCreditAllocationEntity(CreditAllocationEntity instance);
Example #6
0
 partial void InsertCreditAllocationEntity(CreditAllocationEntity instance);
Example #7
0
 private void detach_CreditAllocationEntities(CreditAllocationEntity entity)
 {
     this.SendPropertyChanging();
     entity.CreditEntity = null;
 }