public static CreditAllocationEntity Map(this Allocation allocation) { var entity = new CreditAllocationEntity { id = allocation.Id }; allocation.MapTo(entity); return(entity); }
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; }
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, }); }
partial void DeleteCreditAllocationEntity(CreditAllocationEntity instance);
partial void UpdateCreditAllocationEntity(CreditAllocationEntity instance);
partial void InsertCreditAllocationEntity(CreditAllocationEntity instance);
private void detach_CreditAllocationEntities(CreditAllocationEntity entity) { this.SendPropertyChanging(); entity.CreditEntity = null; }